/* =============================================
   EscutaAqui — Auth Pages (Login / Register)
   Brand: navy #013354 | gold #c3a678 | teal #68ccd1 | cream #fffaf6
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #fffaf6;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}

/* ── Layout two-column ─────────────────────────────────────────── */
#auth-page {
    display: flex;
    min-height: 100vh;
}

/* ── Left panel ────────────────────────────────────────────────── */
.auth-left {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fffaf6;
    padding: 48px 20px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
}

/* ── Logo ──────────────────────────────────────────────────────── */
.auth-logo {
    margin-bottom: 36px;
}
.auth-logo img {
    height: 44px;
    width: auto;
    display: block;
}

/* ── Title / subtitle ──────────────────────────────────────────── */
.auth-title {
    font-family: 'Questrial', sans-serif;
    font-size: 1.75rem;
    color: #013354;
    line-height: 1.25;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 28px;
    line-height: 1.5;
}
.auth-subtitle a {
    color: #c3a678;
    font-weight: 600;
    text-decoration: none;
}
.auth-subtitle a:hover { color: #a88655; text-decoration: underline; }

/* ── Field ─────────────────────────────────────────────────────── */
.auth-field-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e5ddd0;
    border-radius: 12px;
    padding: 0 14px;
    transition: border-color .18s, box-shadow .18s;
    position: relative;
}
.auth-field-wrap:focus-within {
    border-color: #c3a678;
    box-shadow: 0 0 0 3px rgba(195,166,120,.12);
}
.auth-field-wrap.has-error {
    border-color: #dc3545;
}

.auth-field-icon {
    color: #c3a678;
    font-size: 0.82rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.auth-field-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #013354;
    padding: 13px 0;
}
.auth-field-input::placeholder { color: #bbb; }

.auth-field-eye {
    background: none;
    border: none;
    cursor: pointer;
    color: #bbb;
    font-size: 0.82rem;
    padding: 4px;
    margin-left: 6px;
    flex-shrink: 0;
    transition: color .18s;
}
.auth-field-eye:hover { color: #c3a678; }

/* ── Error message ─────────────────────────────────────────────── */
.auth-error {
    font-size: 0.78rem;
    color: #dc3545;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Forgot password ───────────────────────────────────────────── */
.auth-forgot {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 4px;
}
.auth-forgot a {
    font-size: 0.8rem;
    font-weight: 600;
    color: #c3a678;
    text-decoration: none;
}
.auth-forgot a:hover { color: #a88655; text-decoration: underline; }

/* ── Primary button ────────────────────────────────────────────── */
.auth-btn-primary {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 13px 24px;
    background: #013354;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .2s, transform .15s;
    letter-spacing: 0.3px;
}
.auth-btn-primary:hover {
    background: #025280;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* ── Divider ───────────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #ddd;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9e3da;
}
.auth-divider span { color: #bbb; white-space: nowrap; }

/* ── Google button ─────────────────────────────────────────────── */
.auth-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 24px;
    background: #fff;
    border: 1.5px solid #e5ddd0;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #013354;
    text-decoration: none;
    transition: background .18s, border-color .18s, box-shadow .18s;
}
.auth-btn-google:hover {
    background: #fdf8f3;
    border-color: #c3a678;
    box-shadow: 0 2px 10px rgba(195,166,120,.15);
    color: #013354;
    text-decoration: none;
}

/* ── Register link ─────────────────────────────────────────────── */
.auth-register-link {
    margin-top: 28px;
    text-align: center;
    font-size: 0.84rem;
    color: #aaa;
}
.auth-register-link a {
    color: #c3a678;
    font-weight: 600;
    text-decoration: none;
}
.auth-register-link a:hover { color: #a88655; text-decoration: underline; }

/* ── Success state ─────────────────────────────────────────────── */
.auth-success-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #68ccd1;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
    margin: 0 auto;
}
.auth-success-state { text-align: center; }

/* ── Right panel ───────────────────────────────────────────────── */
.auth-right {
    display: none;
    flex: 0 0 58%;
    max-width: 58%;
    background: #013354;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.auth-right-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
}


.auth-right-badge {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50px;
    padding: 7px 18px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.4px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
}
.auth-right-badge i { color: #68ccd1; }

.auth-right-img {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 280px);
    object-fit: cover;
    border-radius: 24px;
    display: block;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}


/* ── Responsive ────────────────────────────────────────────────── */
@media (min-width: 1024px) {
    .auth-left {
        flex: 0 0 42%;
        max-width: 42%;
    }
    .auth-right {
        display: flex;
    }
}

@media (max-width: 480px) {
    .auth-left { padding: 36px 16px; }
    .auth-title { font-size: 1.45rem; }
}
