/* ======================================
   LOGIN PAGE - MINDCOUNT BRAND
   ====================================== */

/* Reset e importação das fontes da marca */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo global para o body da página de login */
body.login-page {
    font-family: 'Mozilla Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #004585 0%, #161A3B 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Container principal */
.welcome-container {
    text-align: center;
    max-width: 450px;
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

/* Logo */
.logo-index {
    width: 300px;
    max-width: 85%;
    margin-bottom: 35px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.logo-index:hover {
    transform: scale(1.02);
}

/* Título de boas-vindas */
.welcome-container h1 {
    color: #FFFFFF;
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

/* Subtítulo */
.welcome-container > p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 35px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Caixa de login */
.login-box {
    background-color: #FFFFFF;
    padding: 45px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* Form group */
.form-group {
    margin-bottom: 22px;
    text-align: left;
}

/* Campos de entrada */
.login-box input[type="email"],
.login-box input[type="password"],
.login-box input[type="text"] {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Mozilla Text', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    background-color: #FAFAFA;
    color: #161A3B;
}

.login-box input[type="email"]:focus,
.login-box input[type="password"]:focus,
.login-box input[type="text"]:focus {
    outline: none;
    border-color: #004585;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(4, 85, 133, 0.12);
}

/* Placeholder */
.login-box input::placeholder {
    color: #999999;
    font-weight: 300;
}

/* Checkbox "Lembrar-me" */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    text-align: left;
}

.remember-me input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #004585;
}

.remember-me label {
    font-size: 14px;
    color: #4A4A4A;
    cursor: pointer;
    user-select: none;
    font-weight: 400;
}

/* Botão de login */
.login-box button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #004585 0%, #0E7DCC 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Mozilla Text', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(4, 85, 133, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-box button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(4, 85, 133, 0.45);
    background: linear-gradient(135deg, #0E7DCC 0%, #004585 100%);
}

.login-box button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(4, 85, 133, 0.35);
}

/* Link esqueceu senha */
.login-box > p {
    margin-top: 24px;
    font-size: 14px;
}

.login-box a {
    color: #004585;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-box a:hover {
    color: #0E7DCC;
    text-decoration: underline;
}

/* Mensagens de erro */
.error-message {
    display: block;
    color: #DC3545;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 400;
    padding: 6px 10px;
    background-color: #FFEBEE;
    border-left: 3px solid #DC3545;
    border-radius: 4px;
}

/* Mensagens de sucesso */
.success-message {
    display: block;
    color: #00843D;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
    padding: 12px 15px;
    background-color: #E8F5E9;
    border-left: 3px solid #00F558;
    border-radius: 6px;
    animation: slideIn 0.4s ease-out;
}

/* Animação de fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação de slide in (para mensagens de sucesso) */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade para mobile */
@media (max-width: 480px) {
    .login-box {
        padding: 35px 28px;
        border-radius: 16px;
    }

    .logo-index {
        width: 240px;
        margin-bottom: 28px;
    }

    .welcome-container h1 {
        font-size: 28px;
    }

    .welcome-container > p {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .login-box button[type="submit"] {
        font-size: 16px;
        padding: 14px;
    }
}

@media (max-width: 360px) {
    .login-box {
        padding: 30px 22px;
    }

    .logo-index {
        width: 200px;
    }

    .welcome-container h1 {
        font-size: 24px;
    }
}
