/* ==========================================================================
   ESTILOS ULTRA-PREMIUM - TELA DE LOGIN (LOGIN.CSS)
   ========================================================================== */

   .login-page {
    background-color: #f9f9f9;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    font-family: system-ui, -apple-system, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

/* CARTÃO */
.login-card {
    background-color: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 20px;
    padding: 45px 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

/* HEADER */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon-circle {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 30, 39, 0.08);
    color: #D4AF37;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px auto;
}

.login-header h2 {
    color: #0a0a0a;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.login-header h2 span {
    color: #D4AF37;
}

.login-desc {
    color: #666;
    font-size: 14px;
}

/* FORM */
.form-login-premium {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-label {
    color: #0a0a0a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.login-input {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input .input-main-icon {
    position: absolute;
    left: 16px;
    color: #a0a0a0;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.login-input input {
    width: 100%;
    background-color: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 14px 16px 14px 44px;
    color: #0a0a0a;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
}

.login-input input:focus {
    border-color: #D4AF37;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 30, 39, 0.05);
}

.login-input input:focus ~ .input-main-icon {
    color: #D4AF37;
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
}

.btn-login {
    background-color: #0a0a0a;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #D4AF37;
    transform: translateY(-2px);
}

/* VOLTAR */
.voltar-site {
    color: #666;
    font-size: 13px;
    font-weight: 700;
    margin-top: 25px;
    display: inline-flex;
    justify-content: center;
    gap: 8px;
}

.voltar-site:hover {
    color: #D4AF37;
}

/* ERRO */
.login-erro-box {
    background-color: rgba(231, 76, 60, 0.08);
    border-left: 4px solid #e74c3c;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ==========================================================================
   🔥 CORREÇÃO PRINCIPAL (PROBLEMA QUE ESTAVAS A VER)
   ========================================================================== */

@media (max-width: 992px) {

    .login-page {
        display: flex;              /* troca grid → flex */
        flex-direction: column;
        justify-content: flex-start; /* remove centramento vertical */
        align-items: center;
        padding: 120px 20px 60px;   /* aproxima do header e afasta do footer */
        min-height: auto;
    }

    .login-container {
        margin-top: 0;
    }
}

/* MOBILE EXTRA */
@media (max-width: 400px) {
    .login-card {
        padding: 35px 20px;
    }
}