/* ==========================================================================
   1. LAYOUT GERAL COM HEADER E FOOTER FIXOS
   ========================================================================== */
body {
    padding-top: 80px;
    padding-bottom: 70px;
}

.main-header,
footer {
    position: fixed !important;
    left: 0;
    right: 0;
}

.main-header {
    top: 0;
}

footer {
    bottom: 0;
}

.login-main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 150px);
    padding: 40px 20px;
}

/* ==========================================================================
   2. NOVO CONTAINER DO LOGIN (O "CARD")
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-container {
    width: 100%;
    max-width: 550px;
    padding: 40px;
    border-radius: 20px;
    background-color: var(--bg-secondary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==========================================================================
   3. ELEMENTOS INTERNOS DO CARD
   ========================================================================== */

.login-intro {
    text-align: center;
    margin-bottom: 30px;
}

.login-intro h1 {
    font-family: var(--font-main);
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.login-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.form-cadastro {
    width: 100%;
}

.form-cadastro fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-cadastro .error-message {
    margin-top: -5px;
    min-height: 18px;
}

.form-cadastro .error-message.client-error:not(:empty) {
    display: block !important;
}

.form-cadastro .cta-button {
    margin-top: 10px;
    width: 100%;
}

/* ==========================================================================
   4. ÍCONE DE ENGRENAGEM 
   ========================================================================== */

.settings-a .icon-wrapper i {
    font-size: 22px;
    border: 1px solid transparent;
    padding: 6px;
    border-radius: 50%;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.settings-a .gear-icon:first-child {
    transition: all 0.4s ease-in-out;
}

.settings-a[aria-expanded="true"] .gear-icon:first-child {
    transform: rotate(180deg);
}

/* ==========================================================================
   5. RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 600px) {
    .login-main {
        padding: 20px 10px;
    }

    .login-container {
        padding: 30px 20px;
        margin-bottom: 9vh;
    }

    .login-intro h1 {
        font-size: 2.2rem;
    }
}