/* Account module — login / sign-up split screen and the profile page */

.auth { background: var(--po-bg); }

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: calc(100vh - 120px);
}

.auth-aside {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, .85);
    background:
        radial-gradient(420px 320px at 85% 10%, rgba(255, 185, 49, .22), transparent 70%),
        radial-gradient(520px 420px at 0% 100%, rgba(47, 76, 240, .55), transparent 70%),
        var(--po-navy);
}

.auth-aside::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.auth-aside-inner {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin-left: auto;
    padding: 4rem 3rem;
}

.auth-aside h2 { color: #fff; font-size: 2rem; font-weight: 800; margin: 2.5rem 0 1.5rem; line-height: 1.2; }

.auth-points { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; gap: .9rem; }
.auth-points li { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.auth-points .icon { color: var(--po-gold); flex: 0 0 auto; }

.auth-quote {
    padding: 1.5rem;
    border-radius: var(--po-radius-lg);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
}

.auth-quote-mark { font-size: 3rem; line-height: .6; color: var(--po-gold); font-weight: 800; }
.auth-quote p { color: #fff; font-weight: 600; margin: .5rem 0; }
.auth-quote small { color: rgba(255, 255, 255, .6); }

.auth-main { display: flex; align-items: center; padding: 3rem 1.5rem; }

.auth-card { width: 100%; max-width: 440px; margin: 0 auto 0 4rem; }
.auth-card-wide { max-width: 620px; }
.auth-card h1 { font-size: 2rem; font-weight: 800; margin-bottom: .35rem; }
.auth-sub { color: var(--po-muted); margin-bottom: 2rem; }

.plan-note {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: #fff7e6;
    color: #7a5200;
}

.field-error { color: var(--po-coral); font-size: .85rem; font-weight: 600; }
.field-error:empty { display: none; }
.input-validation-error { border-color: var(--po-coral) !important; }

.password-field { position: relative; }
.password-field .form-control { padding-right: 3rem; }

.password-toggle {
    position: absolute;
    top: 50%;
    right: .5rem;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--po-muted);
}

.password-toggle:hover, .password-toggle.is-on { color: var(--po-blue); background: var(--po-sky); }

.strength { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; height: 18px; }
.strength i { display: block; height: 5px; width: 0; border-radius: 99px; transition: width .25s, background .25s; }
.strength span { font-size: .8rem; font-weight: 700; }
.strength.is-weak i { background: var(--po-coral); } .strength.is-weak span { color: var(--po-coral); }
.strength.is-fair i { background: var(--po-gold); } .strength.is-fair span { color: #b07800; }
.strength.is-good i { background: var(--po-teal); } .strength.is-good span { color: var(--po-teal); }
.strength.is-strong i { background: var(--po-blue); } .strength.is-strong span { color: var(--po-blue); }

/* ---------- profile ---------- */
.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.profile-sub { margin: 0; color: var(--po-muted); }

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.profile-stats > div {
    padding: 1rem 1.25rem;
    border-radius: var(--po-radius);
    background: #fff;
    border: 1px solid var(--po-line);
}

.profile-stats strong { display: block; font-size: 1.6rem; font-weight: 800; }
.profile-stats span { color: var(--po-muted); font-size: .875rem; }

.profile-tabs { gap: .5rem; border-bottom: 1px solid var(--po-line); }

.profile-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: .85rem 1rem;
    font-weight: 700;
    color: var(--po-muted);
    background: none;
}

.profile-tabs .nav-link.active { color: var(--po-blue); border-bottom-color: var(--po-blue); }

.list-heading { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; }

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 0;
}

.details-grid > div {
    padding: 1rem 1.25rem;
    border: 1px solid var(--po-line);
    border-radius: var(--po-radius);
    background: #fff;
}

.details-grid dt { font-size: .75rem; color: var(--po-muted); text-transform: uppercase; letter-spacing: .06em; }
.details-grid dd { margin: .25rem 0 0; font-weight: 700; }

@media (max-width: 991.98px) {
    .auth-grid { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-card { margin: 0 auto; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
}
