﻿body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #1e293b;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    display: flex;
    align-items: flex-start; /* logo no topo */
    justify-content: center;
    padding-top: 20px; /* espaço entre topo e logo */
    width: 100%; 
}


/* Estilo para erros de password */
.validation-field {
    color: #dc3545; /* vermelho bootstrap */
    font-size: 0.875em;
    margin-top: 0px;
    display: block;
}
 
.login-box {
    background: white;
    padding: 2rem;
    padding-top: 10px;
    padding-bottom: 15px;
    border-radius: 12px;
    width: 450px;
    max-width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.login-box h2 {
    margin-bottom: 0.5rem;
    color: #CC5500;
}

.login-box label {
    display: block;
    text-align: left;
    margin-top: 1rem;
}

.login-box input {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}
 
.validation-message {
    color: red;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.logo-container {
    text-align: center;
}

.logo-container img {
    height: auto;
    user-select: none;
    width: 75%;
}

.goback {
    margin-top: 1rem;
    text-align: center;
}

    .goback a {
        color: #CC5500;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s;
        font-size: 15px;
        user-select: none;
    }

.forgot-password {
    margin-top: 1rem;
    text-align: right;
}

    .forgot-password a {
        color: black;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s;
        font-size: 15px;
        user-select: none;
    }

        .forgot-password a:hover {
            color: black;
        }

.btn-login {
    margin-top:20px;
    width: 70%;
    padding: 0.8rem;    
    background: linear-gradient(135deg, #CC5500, #FF7700);
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background: linear-gradient(135deg, #B04400, #E66F00);
}



input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}


input[type="password"] {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-bottom: 15px;
}

.login-title {
    font-size: 1.8rem;
    color: #CC5500;
    margin-bottom: 1rem;
}


.language-selector {
    position: relative;  
}

    .language-selector img {
        width: auto;
        height: 16px;
        vertical-align: middle;
        border-radius: 2px;
        cursor: pointer;
        position: static; /* remove absolute */
    }


.current-lang {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%; /* aparece logo abaixo do botão */
    right: 0;
    background: white;
    border: 1px solid #ccc;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

    .lang-dropdown li img {
        height: 18px;
        width: auto;
    }

    .lang-dropdown li {
        padding: 0.3rem 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .lang-dropdown li:hover {
            background: #eee;
        }




    /* Mobile styles */
    @media (max-width: 480px) {
        body {
            background-color: white;
        }

        .login-box {
            width: 100%;
            padding: 1rem;
        }

            .login-box h2 {
                font-size: 1.1rem;
            }

            .login-box button {
                width: 100%;
            }

        input[type="text"],
        input[type="password"],
        input[type="email"],
        textarea {
            padding-top: 12px;
            padding-bottom: 12px;
            font-size: 0.95rem;
            padding-right: 0px !important;
        }

        .forgot-password {
            text-align: center;
            margin-top: 0px!important;
        }


        .logo-container {
            text-align: center;
            margin-bottom: 0.5rem;
            padding-bottom: 10px;
        }

            .logo-container img {
                max-width: 300px;
                height: auto;
                user-select: none;
            }
    }


.login-links {
    width: 100%
}

.login-links a {
    padding-top: 1px;
    color: #CC5500;
    text-decoration: none;
}

    .login-links a:link,
    .login-links a:visited,
    .login-links a:hover,
    .login-links a:active {
        color: #CC5500;
        text-decoration: none
    }
