/* Fame Advisory — professional auth (login, forgot, reset) */

:root {
    --portal-navy: #152a44;
    --portal-blue: #1e3d5c;
    --portal-accent: #3672a0;
    --portal-accent-hover: #2d5f8f;
    --portal-gold: #e6b800;
    --portal-gold-soft: rgba(254, 204, 0, 0.14);
    --portal-text: #181c32;
    --portal-text-muted: #6b7280;
    --portal-border: #e8eaef;
    --portal-surface: #fafbfc;
}

html,
body.app-blank {
    height: 100%;
    margin: 0;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.portal-auth-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--portal-surface);
}

@media (min-width: 992px) {
    .portal-auth-root {
        flex-direction: row;
    }
}

.portal-auth-panel {
    flex: 1 1 auto;
    min-height: 0;
}

/* —— Form panel —— */
.portal-auth-panel--form {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow-y: auto;
}

.portal-auth-form-shell {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 1.5rem 1.75rem 1.25rem;
}

@media (min-width: 992px) {
    .portal-auth-form-shell {
        max-width: none;
        margin: 0;
        padding: 2.5rem 4rem 2rem;
        min-height: 100%;
    }
}

.portal-auth-form-header {
    flex-shrink: 0;
    padding-bottom: 1.5rem;
}

.portal-auth-form-header img {
    height: 64px;
    width: auto;
    display: block;
}

.portal-auth-logo--mobile {
    display: block;
    text-align: center;
    padding: 1.25rem 0 0.5rem;
}

.portal-auth-logo--mobile img {
    height: 60px;
    width: auto;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .portal-auth-logo--mobile {
        display: none;
    }
}

.portal-auth-form-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 2rem;
}

.portal-auth-form-wrap {
    width: 100%;
    max-width: 400px;
}

.portal-auth-form-footer {
    flex-shrink: 0;
    padding-top: 1rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    letter-spacing: 0.01em;
}

.portal-auth-form {
    max-width: 420px;
}

.portal-auth-eyebrow {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--portal-accent);
    margin-bottom: 0.75rem;
}

.portal-auth-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--portal-text);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 0.5rem;
}

.portal-auth-card-subtitle {
    color: var(--portal-text-muted);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.55;
    margin: 0 0 2rem;
}

.portal-auth-form .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.45rem;
    letter-spacing: 0.01em;
}

.portal-auth-form .form-control {
    background: #fff;
    border: 1px solid var(--portal-border);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border-radius: 0.5rem;
    min-height: 46px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-auth-form .form-control::placeholder {
    color: #9ca3af;
}

.portal-auth-form .form-control:focus {
    border-color: var(--portal-accent);
    box-shadow: 0 0 0 3px rgba(54, 114, 160, 0.1);
}

.portal-auth-form .btn-primary {
    background: var(--portal-accent);
    border: none;
    padding: 0.8rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    min-height: 48px;
    border-radius: 0.5rem;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 2px rgba(21, 42, 68, 0.08);
    transition: background 0.15s ease, transform 0.1s ease;
}

.portal-auth-form .btn-primary:hover {
    background: var(--portal-accent-hover);
}

.portal-auth-form .btn-primary:active {
    transform: translateY(1px);
}

.portal-auth-form .link-primary {
    color: var(--portal-accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.portal-auth-form .link-primary:hover {
    color: var(--portal-navy);
    text-decoration: underline;
}

.portal-auth-form .alert-danger {
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.portal-auth-copyright {
    color: var(--portal-text-muted);
    font-size: 0.85rem;
}

[data-portal-password-wrapper] .form-control.pe-12 {
    padding-right: 3rem !important;
}

/* —— Brand panel —— */
.portal-auth-panel--brand {
    display: none;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background-color: var(--portal-blue);
    background-image: var(--portal-auth-brand-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

@media (min-width: 992px) {
    .portal-auth-panel--brand {
        display: flex;
        flex: 0 0 46%;
        max-width: 46%;
    }

    .portal-auth-panel--form {
        flex: 0 0 54%;
        max-width: 54%;
    }
}

.portal-auth-panel--brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        145deg,
        rgba(21, 42, 68, 0.58) 0%,
        rgba(30, 61, 92, 0.5) 42%,
        rgba(54, 114, 160, 0.44) 100%
    );
    pointer-events: none;
}

.portal-auth-panel--brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.08) 32%,
        transparent 68%
    );
    pointer-events: none;
}

.portal-auth-brand-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.portal-auth-brand-logo-wrap {
    display: table;
    margin: 0 auto 2.25rem;
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.75rem 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.portal-auth-brand-logo {
    display: block;
    width: auto;
    height: 88px;
    max-width: 100%;
    margin: 0 auto;
}

.portal-auth-brand-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--portal-gold);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.portal-auth-brand-title {
    color: #fff;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0 0 0.85rem;
}

.portal-auth-brand-text {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 2rem;
    font-weight: 400;
}

.portal-auth-brand-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.portal-auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.45;
    backdrop-filter: blur(4px);
}

.portal-auth-brand-features .portal-auth-check {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.35rem;
    background: var(--portal-gold);
    color: var(--portal-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
}
