/* Premium account experience */

body.auth-layout {
    background:
        linear-gradient(90deg, rgba(11, 99, 206, .035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(33, 183, 150, .032) 1px, transparent 1px),
        linear-gradient(180deg, #f7fbff 0%, #eef7ff 46%, #f8fffc 100%);
    background-size: 30px 30px, 30px 30px, auto;
}

body.auth-layout .ng-main {
    padding-top: 142px;
}

.auth-shell {
    width: min(1240px, 100%);
    margin: clamp(22px, 4vw, 46px) auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .72fr);
    gap: clamp(18px, 4vw, 42px);
    align-items: stretch;
}

.auth-market-strip {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px solid rgba(15, 37, 68, .08);
    border-radius: 20px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 46px rgba(15, 37, 68, .06);
}

.auth-market-strip span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #30415d;
    font-size: .82rem;
    font-weight: 900;
    background: linear-gradient(180deg, #ffffff, #f3f8ff);
    border: 1px solid rgba(11, 99, 206, .10);
}

.auth-market-strip i {
    color: #0b63ce;
}

.auth-hero-panel,
.auth-card {
    border: 1px solid rgba(15, 37, 68, .10);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 26px 72px rgba(15, 37, 68, .09);
}

.auth-hero-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    min-height: 560px;
    background:
        linear-gradient(90deg, rgba(11, 99, 206, .07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(33, 183, 150, .06) 1px, transparent 1px),
        linear-gradient(135deg, #ffffff 0%, #edf7ff 52%, #f5fffb 100%);
    background-size: 28px 28px, 28px 28px, auto;
}

.auth-hero-panel > * {
    position: relative;
    z-index: 1;
}

.auth-hero-panel::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block: 0;
    width: 7px;
    background: linear-gradient(180deg, #0b63ce, #19b6e8, #21b796);
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(11, 99, 206, .16);
    background: rgba(11, 99, 206, .08);
    color: #0b63ce;
    font-weight: 800;
    font-size: .82rem;
}

.auth-hero-panel h1 {
    max-width: 760px;
    margin: 22px 0 14px;
    color: #071a33;
    font-size: clamp(2rem, 4.3vw, 4rem);
    line-height: 1.28;
    font-weight: 900;
}

.auth-hero-panel p {
    max-width: 680px;
    color: #64748b;
    line-height: 1.9;
    font-size: 1.02rem;
}

.auth-preview-console {
    width: min(620px, 100%);
    margin-top: clamp(24px, 4vw, 42px);
    padding: 18px;
    border: 1px solid rgba(15, 37, 68, .10);
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(11, 99, 206, .045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(33, 183, 150, .045) 1px, transparent 1px),
        rgba(255,255,255,.82);
    background-size: 24px 24px, 24px 24px, auto;
    box-shadow: 0 20px 54px rgba(15, 37, 68, .08);
}

.auth-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #0f2544;
    font-weight: 900;
}

.auth-preview-header strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #047857;
    background: rgba(32, 180, 134, .12);
    border: 1px solid rgba(32, 180, 134, .18);
    font-size: .78rem;
}

.auth-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.auth-preview-grid div {
    min-height: 104px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 37, 68, .09);
    box-shadow: 0 14px 34px rgba(15, 37, 68, .05);
}

.auth-preview-grid i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #0b63ce, #19b6e8);
}

.auth-preview-grid span,
.auth-preview-grid strong {
    display: block;
}

.auth-preview-grid span {
    margin-top: 10px;
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
}

.auth-preview-grid strong {
    margin-top: 2px;
    color: #071a33;
    font-size: .9rem;
    font-weight: 900;
}

.auth-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: clamp(24px, 4vw, 46px);
}

.auth-proof-grid div {
    min-height: 132px;
    padding: 16px;
    border: 1px solid rgba(15, 37, 68, .10);
    border-radius: 18px;
    background: rgba(255, 255, 255, .80);
    box-shadow: 0 16px 38px rgba(15, 37, 68, .06);
}

.auth-proof-grid i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #0b63ce, #21b796);
}

.auth-proof-grid strong,
.auth-proof-grid span {
    display: block;
}

.auth-proof-grid strong {
    margin-top: 12px;
    color: #0f2544;
    font-weight: 900;
}

.auth-proof-grid span {
    margin-top: 4px;
    color: #64748b;
    font-size: .84rem;
    line-height: 1.7;
}

.auth-card {
    padding: clamp(22px, 3vw, 34px);
}

.auth-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px;
    border-radius: 16px;
    background: #f5f9ff;
    border: 1px solid rgba(15, 37, 68, .08);
}

.auth-stepper span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #64748b;
    font-size: .78rem;
    font-weight: 900;
}

.auth-stepper .active {
    color: #fff;
    background: linear-gradient(135deg, #0b63ce, #19b6e8);
    box-shadow: 0 12px 26px rgba(11, 99, 206, .16);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(15, 37, 68, .08);
}

.auth-logo-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #0b63ce, #19b6e8);
    box-shadow: 0 16px 34px rgba(11, 99, 206, .20);
}

.auth-card h2 {
    color: #071a33;
    font-weight: 900;
    margin: 0;
}

.auth-card-header p,
.auth-switch,
.auth-link {
    color: #64748b;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-shell-register .auth-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-shell-register .auth-form > .alert,
.auth-shell-register .auth-captcha,
.auth-shell-register #captchaError,
.auth-shell-register .auth-submit {
    grid-column: 1 / -1;
}

.account-progress {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid rgba(15, 37, 68, .08);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(248, 251, 255, .96), rgba(239, 246, 255, .72));
}

.account-progress-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: .8rem;
    font-weight: 900;
    white-space: nowrap;
}

.account-progress-step span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(15, 37, 68, .10);
    color: #64748b;
}

.account-progress-step.active {
    color: #0b63ce;
}

.account-progress-step.active span {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #0b63ce, #38bdf8);
    box-shadow: 0 12px 26px rgba(11, 99, 206, .18);
}

.account-progress-line {
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(11, 99, 206, .22), rgba(45, 212, 191, .10));
}

.auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #0f2544;
    font-size: .86rem;
    font-weight: 900;
}

.auth-input {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(15, 37, 68, .12);
    border-radius: 16px;
    background: #f8fbff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-input:focus-within {
    border-color: rgba(11, 99, 206, .42);
    box-shadow: 0 0 0 4px rgba(11, 99, 206, .08);
    background: #fff;
}

.auth-input i {
    color: #0b63ce;
}

.auth-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #071a33;
    font-weight: 700;
}

.auth-input input::placeholder {
    color: #94a3b8;
}

.auth-hint {
    margin-top: 6px;
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
}

.password-meter {
    display: grid;
    gap: 6px;
    margin-top: 9px;
}

.password-meter-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 37, 68, .08);
}

.password-meter-track span {
    display: block;
    height: 100%;
    width: 8%;
    border-radius: inherit;
    background: #ef4444;
    transition: width .22s ease, background .22s ease;
}

.password-meter-track span.weak {
    background: #ef4444;
}

.password-meter-track span.fair {
    background: #f59e0b;
}

.password-meter-track span.good {
    background: #0b63ce;
}

.password-meter-track span.strong {
    background: linear-gradient(90deg, #0f9f6e, #2dd4bf);
}

.password-meter small {
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
}

.auth-submit-loading {
    display: none;
}

.auth-submit.is-loading .auth-submit-text {
    display: none;
}

.auth-submit.is-loading .auth-submit-loading {
    display: inline;
}

.auth-icon-button {
    border: 0;
    background: transparent;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 11px;
}

.auth-icon-button:hover {
    background: rgba(11, 99, 206, .08);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: .88rem;
}

.auth-check input {
    width: 17px;
    height: 17px;
    accent-color: #0b63ce;
}

.auth-link,
.auth-switch a {
    color: #0b63ce;
    font-weight: 900;
    text-decoration: none;
}

.auth-captcha {
    display: flex;
    justify-content: center;
    padding: 8px 0;
    overflow: hidden;
}

.auth-submit,
.auth-google {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-submit {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #0b63ce 0%, #1457b7 58%, #0a8fc4 100%);
    box-shadow: 0 18px 34px rgba(11, 99, 206, .18);
}

.auth-submit:hover,
.auth-google:hover {
    transform: translateY(-1px);
}

.auth-submit:hover {
    box-shadow: 0 22px 44px rgba(11, 99, 206, .24);
}

.auth-google {
    color: #0f2544;
    background: #fff;
    border: 1px solid rgba(15, 37, 68, .12);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: .82rem;
    margin: 18px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(15, 37, 68, .10);
}

.auth-switch {
    text-align: center;
    margin: 18px 0 0;
}

.auth-safe-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(11, 99, 206, .07), rgba(32, 180, 134, .08));
    border: 1px solid rgba(15, 37, 68, .08);
    color: #526178;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.7;
}

.auth-safe-note i {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #0b63ce;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 37, 68, .06);
}

@media (max-width: 991.98px) {
    body.auth-layout .ng-main {
        padding-top: 110px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-hero-panel {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .auth-shell-register .auth-form,
    .auth-preview-grid {
        grid-template-columns: 1fr;
    }

    .auth-proof-grid {
        grid-template-columns: 1fr;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .auth-captcha {
        justify-content: flex-start;
        transform: scale(.88);
        transform-origin: right center;
        width: 114%;
    }
}
