/* ============================================================
   Portal Auth Pages — Login & Registo
   Split-screen: navy left panel + white right form
   ============================================================ */

/* ---- Reset for auth pages ---- */
.portal-body {
    background: #f4f7fb;
    min-height: 100vh;
}

/* Hide default portal header/footer on auth pages */
.portal-site-header,
.portal-footer {
    display: none !important;
}

/* ============================================================
   AUTH WRAP — full-screen split layout
   ============================================================ */
.auth-wrap {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   LEFT PANEL — navy + gold
   ============================================================ */
.auth-left {
    flex: 0 0 420px;
    background: #0a2342;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 48px;
    overflow: hidden;
}

/* Decorative background pattern */
.auth-left-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(232, 160, 32, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.auth-left-pattern::before {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(232,160,32,0.15);
    border-radius: 50%;
}
.auth-left-pattern::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(232,160,32,0.08);
    border-radius: 50%;
}

/* Brand */
.auth-brand {
    position: relative;
    z-index: 2;
    margin-bottom: auto;
}
.auth-brand a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.auth-brand img {
    height: 40px;
    width: auto;
}
.auth-brand span {
    font-family: 'Playfair Display', 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

/* Left content */
.auth-left-content {
    position: relative;
    z-index: 2;
    padding: 60px 0 40px;
}
.auth-left-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
}
.auth-left-content h1 span {
    color: #e8a020;
}
.auth-left-content p {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    margin-bottom: 32px;
}

/* Feature list */
.auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.80);
    font-weight: 500;
}
.auth-features li i {
    color: #e8a020;
    font-size: 16px;
    flex-shrink: 0;
}

/* ============================================================
   RIGHT PANEL — white form area
   ============================================================ */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7fb;
    padding: 40px 24px;
}

.auth-form-wrap {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 8px 40px rgba(10,35,66,0.10);
}
.auth-form-wrap--wide {
    max-width: 520px;
}

/* Form header */
.auth-form-header {
    margin-bottom: 28px;
}
.auth-form-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #0a2342;
    margin-bottom: 6px;
}
.auth-form-header p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Alert */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #dc2626;
    margin-bottom: 22px;
}
.auth-alert i {
    flex-shrink: 0;
    font-size: 16px;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Two-column row */
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Field */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.auth-field label {
    font-size: 13px;
    font-weight: 700;
    color: #0a2342;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input with icon */
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-wrap > i {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}
.auth-input-wrap input {
    width: 100%;
    height: 48px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 16px 0 42px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: #0a2342;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input-wrap input::placeholder {
    color: #c9cdd2;
}
.auth-input-wrap input:focus {
    border-color: #e8a020;
    box-shadow: 0 0 0 3px rgba(232,160,32,0.12);
}

/* Botão mostrar/ocultar senha */
.auth-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
    z-index: 2;
}
.auth-eye:hover {
    color: #0a2342;
}
.auth-input-wrap:has(.auth-eye) input {
    padding-right: 42px;
}

/* Submit button */
.auth-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    background: #e8a020;
    color: #0a2342;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 6px;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 16px rgba(232,160,32,0.28);
}
.auth-btn-primary:hover {
    background: #d4910f;
    color: #0a2342;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232,160,32,0.38);
}
.auth-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(232,160,32,0.22);
}
.auth-btn-primary i {
    font-size: 16px;
    transition: transform 0.2s;
}
.auth-btn-primary:hover i {
    transform: translateX(4px);
}
/* Divider "ou" */
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 4px 0;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: #e5e7eb;
}
.auth-divider span { font-size: 12px; color: #9ca3af; font-weight: 600; white-space: nowrap; }

/* Footer link */
.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    font-size: 14px;
    color: #6b7280;
}
.auth-footer a {
    color: #e8a020;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}
.auth-footer a:hover {
    color: #0a2342;
}

/* Back link */
.auth-back {
    text-align: center;
    margin-top: 14px;
}
.auth-back a {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.auth-back a:hover {
    color: #0a2342;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .auth-left {
        flex: 0 0 320px;
        padding: 36px 32px;
    }
    .auth-left-content h1 {
        font-size: 34px;
    }
    .auth-form-wrap {
        padding: 36px 28px;
    }
}

@media (max-width: 767px) {
    .auth-wrap {
        flex-direction: column;
    }
    .auth-left {
        flex: none;
        padding: 30px 24px 40px;
        min-height: auto;
    }
    .auth-left-content {
        padding: 30px 0 0;
    }
    .auth-left-content h1 {
        font-size: 28px;
    }
    .auth-features {
        display: none;
    }
    .auth-right {
        padding: 24px 16px 40px;
        align-items: flex-start;
    }
    .auth-form-wrap {
        padding: 28px 22px;
        border-radius: 16px;
    }
    .auth-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}