/* RESET BÁSICO */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f8;
    color: #111827;
}

/* HEADER PADRÃO */
.topo-recuperacao {
    width: 100%;
    background: linear-gradient(90deg, #2F3E36, #2F3E36);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    padding: 10px 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-pequena {
    height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
}

.voltar-site {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    transition: 0.3s ease;
}

.voltar-site:hover {
    color: #2563EB;
    text-decoration: underline;
}

/* CONTAINER */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 90px);
    padding: 30px 15px;
}

/* CARD */
.login-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.login-card h2 {
    margin-bottom: 5px;
    color: #111827;
}

.subtitulo {
    color: #4B5563;
    margin-bottom: 20px;
    font-size: 14px;
}

/* INPUTS */
.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    font-size: 14px;
    font-weight: bold;
    color: #111827;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    margin-top: 5px;
    color: #111827;
    background: #ffffff;
}

.input-group input:focus {
    outline: none;
    border-color: #2F3E36;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* BOTÃO */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #2F3E36;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

.btn-login:hover {
    background: #2563EB;
}

/* ERRO */
.erro {
    color: #e53935;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* SUCESSO */
.sucesso {
    background: #ddffdd;
    color: #2e7d32;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* LINKS */
.extra-links {
    margin-top: 12px;
    font-size: 14px;
}

.extra-links a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
}

.extra-links a:hover {
    text-decoration: underline;
}

/* ANIMAÇÃO */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input:invalid {
    border: 1px solid red;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .topo-recuperacao {
        padding: 10px 15px;
    }

    .header-container {
        gap: 10px;
    }

    .logo-pequena {
        height: 42px;
    }

    .voltar-site {
        font-size: 13px;
        text-align: right;
    }

    .login-container {
        min-height: calc(100vh - 75px);
        padding: 25px 12px;
    }

    .login-card {
        padding: 22px 18px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .logo-pequena {
        height: 38px;
    }

    .voltar-site {
        font-size: 12px;
        max-width: 150px;
        line-height: 1.3;
    }

    .login-card h2 {
        font-size: 22px;
    }

    .subtitulo {
        font-size: 13px;
    }
}