/* =========================================
   AUTH PAGE PREMIUM LIGHT (COMPACTA)
========================================= */

.auth-page {
    min-height: 100vh;
    min-height: 100dvh; /* Evita scroll no mobile por causa da barra do navegador */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, rgba(212,175,55,.10), transparent 35%),
                linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    padding: 1rem; /* Espaço reduzido */
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

/* FUNDO */
.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(15,23,42,.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   CONTAINER
========================================= */
.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px; /* Levemente mais estreito */
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Gap reduzido */
}

/* =========================================
   CARD
========================================= */
.auth-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 24px;
    padding: 1.8rem; /* Padding reduzido para compactar */
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(15,23,42,.08),
                0 0 40px rgba(212,175,55,.06);
    transition: transform .25s ease, box-shadow .25s ease;
    box-sizing: border-box;
}

.auth-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 60px rgba(15,23,42,.10),
                0 0 50px rgba(212,175,55,.08);
}

/* =========================================
   LOGO
========================================= */
.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem; /* Margem reduzida */
}

.auth-logo img {
    display: block;
    width: 80px; /* Logo levemente menor */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(212,175,55,.18));
}

/* =========================================
   TITULO
========================================= */
.auth-card h1 {
    font-size: 1.7rem; /* Reduzido */
    font-weight: 800;
    margin-bottom: 0.2rem; /* Reduzido */
    text-align: center;
    color: #0f172a;
    letter-spacing: -1px;
}

/* SUBTITULO */
.auth-subtitle {
    color: #64748b;
    margin-bottom: 1.2rem; /* Margem reduzida */
    text-align: center;
    line-height: 1.4;
    font-size: 0.9rem; /* Fonte menor */
}

/* =========================================
   FORM
========================================= */
.form-group {
    margin-bottom: 0.8rem; /* Margem entre campos reduzida */
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem; /* Margem reduzida */
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

/* =========================================
   INPUTS
========================================= */
.form-group input {
    width: 100%;
    height: 46px; /* Altura reduzida (era 54px) */
    padding: 0 1rem;
    border-radius: 12px;
    border: 1px solid #dbe2ea;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.95rem;
    outline: none;
    transition: all .2s ease;
    box-shadow: inset 0 1px 2px rgba(15,23,42,.02);
    box-sizing: border-box;
}

.form-group input:hover {
    border-color: rgba(212,175,55,.25);
}

.form-group input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212,175,55,.12);
}

.form-group input::placeholder {
    color: #94a3b8;
}

/* =========================================
   SENHA
========================================= */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 45px;
}

/* =========================================
   BOTAO OLHO
========================================= */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.toggle-password:hover {
    background: rgba(15,23,42,.05);
    color: #0f172a;
}

.toggle-password i {
    font-size: 14px;
    pointer-events: none;
}

/* =========================================
   BOTAO PRINCIPAL
========================================= */
.btn {
    width: 100%;
    height: 46px; /* Altura reduzida (era 54px) */
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 45%, #f5d76e 100%);
    color: #111827;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 10px 20px rgba(212,175,55,.15),
                inset 0 1px 0 rgba(255,255,255,.35);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(212,175,55,.25),
                inset 0 1px 0 rgba(255,255,255,.45);
}

.btn:active {
    transform: scale(.99);
}

/* =========================================
   LINKS
========================================= */
.auth-links {
    margin-top: 1rem; /* Margem reduzida */
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
}

.auth-links span {
    margin: 0 .5rem;
    color: #cbd5e1;
}

.auth-links a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    transition: .2s ease;
}

.auth-links a:hover {
    opacity: .8;
}

/* =========================================
   ALERTAS
========================================= */
.alert {
    padding: 0.8rem;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.alert-error {
    background: rgba(239,68,68,.10);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,.18);
}

.alert-success {
    background: rgba(34,197,94,.10);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,.18);
}

/* =========================================
   FOOTER
========================================= */
.auth-footer {
    position: relative;
    z-index: 2;
    margin-top: 1rem; /* Margem reduzida */
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    letter-spacing: .3px;
}

/* =========================================
   TABLET
========================================= */
@media(max-width: 768px) {
    .auth-page {
        padding: 1rem;
    }
    .auth-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .auth-card h1 {
        font-size: 1.6rem;
    }
}

/* =========================================
   MOBILE
========================================= */
@media(max-width: 480px) {
    .auth-card {
        padding: 1.2rem;
    }
    .auth-logo {
        margin-bottom: 0.8rem;
    }
    .auth-logo img {
        width: 70px; /* Ainda menor no celular */
    }
    .auth-card h1 {
        font-size: 1.45rem;
        margin-bottom: 0.2rem;
    }
    .auth-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    .form-group {
        margin-bottom: 0.7rem;
    }
    .form-group label {
        font-size: 0.8rem;
    }
    /* Altura 44px e fonte 16px no iOS para não dar zoom */
    .form-group input,
    .btn {
        height: 44px;
        font-size: 16px; 
        border-radius: 10px;
    }
    .auth-links {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        margin-top: 0.8rem;
    }
    .auth-links span {
        display: none;
    }
    .auth-footer {
        margin-top: 0.8rem;
        font-size: 0.7rem;
    }
}