:root {
    --auth-ink: #10251e;
    --auth-deep: #0b2f25;
    --auth-green: #149f6f;
    --auth-mint: #6de0ae;
    --auth-gold: #f4b83f;
    --auth-line: #dce7e1;
    --auth-soft: #f3f8f5;
    --auth-muted: #65766f;
}

.pyq-auth-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    padding: 165px 0 95px;
    background:
        radial-gradient(circle at 10% 15%, rgba(33, 186, 126, .13), transparent 27%),
        radial-gradient(circle at 92% 75%, rgba(244, 184, 63, .11), transparent 24%),
        linear-gradient(135deg, #eef7f1 0%, #fbfcfa 48%, #f2f7f3 100%);
    font-family: "Inter", sans-serif;
}

.auth-page-pattern {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .42;
    background-image: radial-gradient(rgba(16, 78, 59, .16) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.auth-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.auth-glow-one { width: 340px; height: 340px; left: -190px; top: 25%; border: 65px solid rgba(20, 159, 111, .07); }
.auth-glow-two { width: 270px; height: 270px; right: -130px; bottom: 3%; border: 45px solid rgba(244, 184, 63, .07); }

.auth-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px 4px;
    color: #718079;
    font-size: 12px;
    font-weight: 600;
}

.auth-breadcrumb a { color: var(--auth-green); }
.auth-breadcrumb > i { font-size: 9px; color: #a3afa9; }

.auth-experience {
    display: grid;
    grid-template-columns: minmax(0, 47%) minmax(0, 53%);
    width: 100%;
    max-width: 1180px;
    min-height: 720px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(28, 76, 60, .1);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 32px 85px rgba(23, 61, 48, .14), 0 8px 25px rgba(23, 61, 48, .06);
}

.auth-story-panel {
    position: relative;
    overflow: hidden;
    padding: 38px 40px 36px;
    color: #fff;
    background:
        radial-gradient(circle at 87% 8%, rgba(109, 224, 174, .23), transparent 23%),
        radial-gradient(circle at 0 92%, rgba(244, 184, 63, .13), transparent 24%),
        linear-gradient(145deg, #0a3328 0%, #0b4937 57%, #0a3429 100%);
}

.auth-story-panel::before {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    right: -235px;
    top: 90px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    box-shadow: 0 0 0 52px rgba(255, 255, 255, .025), 0 0 0 105px rgba(255, 255, 255, .018);
}

.auth-story-panel::after {
    content: "PYQ";
    position: absolute;
    right: 15px;
    bottom: 15px;
    color: rgba(255, 255, 255, .025);
    font-size: 118px;
    font-weight: 900;
    line-height: 1;
}

.story-topline,
.story-copy,
.auth-feature-grid,
.auth-confidence-card { position: relative; z-index: 1; }

.story-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, .86);
}

.story-topline > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.story-topline > span:first-child i { color: var(--auth-gold); }
.story-live { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 999px; background: rgba(255, 255, 255, .07); }
.story-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--auth-mint); box-shadow: 0 0 0 4px rgba(109, 224, 174, .12); }

.story-copy { margin-top: 69px; }
.story-kicker { display: block; margin-bottom: 14px; color: var(--auth-gold); font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.story-copy h1 { margin: 0; color: #fff; font-size: clamp(38px, 3.2vw, 50px); font-weight: 800; line-height: 1.05; letter-spacing: -2.3px; }
.story-copy h1 em { color: var(--auth-mint); font-style: normal; }
.story-copy p { max-width: 410px; margin: 22px 0 0; color: rgba(255, 255, 255, .72); font-size: 14px; line-height: 1.75; }

.auth-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 35px; }
.auth-feature-grid article { display: flex; align-items: flex-start; gap: 11px; min-height: 92px; padding: 15px 13px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 15px; background: rgba(255, 255, 255, .055); backdrop-filter: blur(10px); }
.auth-feature-grid article > span { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; color: var(--auth-mint); background: rgba(109, 224, 174, .13); }
.auth-feature-grid strong { display: block; color: #fff; font-size: 11.5px; font-weight: 700; }
.auth-feature-grid small { display: block; margin-top: 5px; color: rgba(255, 255, 255, .58); font-size: 9.5px; line-height: 1.45; }

.auth-confidence-card { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 14px 15px; border-left: 3px solid var(--auth-gold); border-radius: 12px; background: rgba(5, 28, 21, .38); }
.confidence-icon { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border-radius: 10px; color: #143d30; background: var(--auth-gold); }
.auth-confidence-card strong, .auth-confidence-card span { display: block; }
.auth-confidence-card strong { color: #fff; font-size: 11px; }
.auth-confidence-card span { margin-top: 3px; color: rgba(255, 255, 255, .57); font-size: 9px; line-height: 1.4; }
.auth-confidence-card > i { margin-left: auto; color: var(--auth-mint); }

.auth-form-panel { display: flex; align-items: center; padding: 42px 54px; background: linear-gradient(160deg, #fff 0%, #fbfdfc 100%); }
.auth-form-wrap { width: 100%; max-width: 500px; margin: 0 auto; }
.auth-form-heading { margin-bottom: 21px; }
.secure-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 13px; padding: 7px 11px; border: 1px solid #d8eee4; border-radius: 999px; color: #08734e; background: #effaf5; font-size: 9px; font-weight: 800; letter-spacing: .65px; text-transform: uppercase; }
.auth-form-heading h2 { margin: 0; color: var(--auth-ink); font-size: 31px; font-weight: 800; line-height: 1.15; letter-spacing: -1.3px; }
.auth-form-heading p { margin: 8px 0 0; color: var(--auth-muted); font-size: 12.5px; }

.auth-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 12px 13px; border-radius: 11px; font-size: 11px; line-height: 1.5; }
.auth-alert.success { color: #08734e; border: 1px solid #bfe7d3; background: #effaf5; }
.auth-alert.error { color: #a83636; border: 1px solid #f0caca; background: #fff5f5; }
.auth-alert ul { margin: 0; padding-left: 17px; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 22px; padding: 5px; border: 1px solid #e6ede9; border-radius: 13px; background: var(--auth-soft); }
.auth-tab { display: flex; align-items: center; justify-content: center; gap: 8px; height: 43px; border: 0; border-radius: 9px; color: #718079; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; transition: .25s ease; }
.auth-tab.active { color: #08734e; background: #fff; box-shadow: 0 5px 16px rgba(22, 68, 51, .08); }

.auth-form { display: none; animation: authReveal .32s ease; }
.auth-form.active { display: block; }
@keyframes authReveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.signup-progress { display: flex; align-items: center; margin: 0 0 19px; color: #87948e; font-size: 9.5px; font-weight: 700; }
.signup-progress span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.signup-progress span i { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #d6e1dc; border-radius: 50%; color: #75847d; background: #fff; font-size: 9px; font-style: normal; }
.signup-progress span.active { color: #08734e; }
.signup-progress span.active i { border-color: var(--auth-green); color: #fff; background: var(--auth-green); box-shadow: 0 0 0 4px rgba(20, 159, 111, .08); }
.signup-progress b { flex: 1; height: 1px; margin: 0 10px; background: #dfe7e3; }

.auth-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
.auth-field { margin-bottom: 14px; }
.auth-field label, .field-label-row label { display: block; margin-bottom: 7px; color: #263a32; font-size: 10.5px; font-weight: 700; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; }
.field-label-row a { margin-bottom: 7px; color: #0c9466; font-size: 9.5px; font-weight: 700; }
.auth-input { position: relative; }
.auth-input > i { position: absolute; top: 50%; left: 14px; z-index: 1; transform: translateY(-50%); color: #92a099; font-size: 12px; pointer-events: none; transition: .2s; }
.auth-input input { width: 100%; height: 47px; padding: 0 42px 0 39px; border: 1px solid var(--auth-line); border-radius: 11px; outline: 0; color: #20342c; background: #fff; font-family: inherit; font-size: 11.5px; transition: .22s ease; }
.auth-input input::placeholder { color: #9aa7a1; }
.auth-input input:hover { border-color: #bdd3c8; }
.auth-input input:focus { border-color: var(--auth-green); box-shadow: 0 0 0 4px rgba(20, 159, 111, .08); }
.auth-input:focus-within > i { color: var(--auth-green); }
.password-toggle { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; transform: translateY(-50%); border: 0; border-radius: 8px; color: #87958e; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--auth-green); background: #eff8f3; }
.field-error { display: block; margin-top: 4px; color: #c24141; font-size: 9.5px; line-height: 1.35; }

.password-guide { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.password-meter { flex: 0 0 70px; height: 4px; overflow: hidden; border-radius: 99px; background: #e9efec; }
.password-meter i { display: block; width: 15%; height: 100%; border-radius: inherit; background: #aab5b0; transition: .25s; }
.password-guide small { color: #829088; font-size: 8.5px; }
.password-guide[data-strength="1"] .password-meter i { width: 35%; background: #e2a232; }
.password-guide[data-strength="2"] .password-meter i { width: 68%; background: #6fb681; }
.password-guide[data-strength="3"] .password-meter i { width: 100%; background: var(--auth-green); }

.auth-check { display: flex; align-items: flex-start; gap: 9px; margin: 1px 0 16px; color: #64756d; font-size: 9.5px; line-height: 1.55; cursor: pointer; }
.auth-check.compact { align-items: center; margin-bottom: 18px; font-size: 10px; }
.auth-check input { position: absolute; opacity: 0; pointer-events: none; }
.auth-check > span { display: grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; border: 1px solid #cbd9d2; border-radius: 5px; color: transparent; background: #fff; transition: .2s; }
.auth-check > span i { font-size: 8px; }
.auth-check input:checked + span { border-color: var(--auth-green); color: #fff; background: var(--auth-green); }
.auth-check input:focus-visible + span { box-shadow: 0 0 0 4px rgba(20, 159, 111, .12); }
.auth-check em { font-style: normal; }
.auth-check a { color: #078058; font-weight: 700; }
.terms-error { margin: -10px 0 13px 27px; }

.auth-submit { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; height: 50px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #16a773 0%, #078459 100%); box-shadow: 0 12px 24px rgba(11, 139, 93, .2); font-family: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer; transition: .25s ease; }
.auth-submit:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 28px rgba(11, 139, 93, .27); }
.auth-submit i { transition: transform .2s; }
.auth-submit:hover i { transform: translateX(3px); }

.form-trust-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px 15px; margin-top: 13px; color: #77867f; font-size: 8px; font-weight: 600; }
.form-trust-row span { display: inline-flex; align-items: center; gap: 5px; }
.form-trust-row i { color: #159b6d; }
.auth-switch-prompt { margin: 17px 0 0; color: #77867f; text-align: center; font-size: 10px; }
.auth-switch-prompt button { padding: 0; border: 0; color: #087d56; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.auth-switch-prompt button:hover { text-decoration: underline; }

.login-mode .auth-experience { min-height: 665px; }
.login-mode .auth-form-panel { padding-top: 55px; padding-bottom: 55px; }

@media (max-width: 1100px) {
    .auth-experience { grid-template-columns: 44% 56%; }
    .auth-story-panel { padding: 34px 28px; }
    .auth-form-panel { padding: 40px 38px; }
    .auth-feature-grid { grid-template-columns: 1fr; }
    .auth-feature-grid article { min-height: auto; }
    .auth-feature-grid article:nth-child(n+4) { display: none; }
}

@media (max-width: 900px) {
    .pyq-auth-page { padding-top: 135px; }
    .auth-experience { grid-template-columns: 1fr; max-width: 690px; }
    .auth-story-panel { padding: 30px 34px; }
    .story-copy { margin-top: 38px; }
    .story-copy h1 { font-size: 38px; }
    .auth-feature-grid { grid-template-columns: 1fr 1fr; }
    .auth-feature-grid article:nth-child(n) { display: flex; }
    .auth-confidence-card { margin-top: 22px; }
    .auth-form-panel { padding: 42px 48px; }
}

@media (max-width: 600px) {
    .pyq-auth-page { padding: 112px 0 60px; }
    .pyq-auth-page .container { padding-left: 14px; padding-right: 14px; }
    .auth-breadcrumb { margin-bottom: 15px; }
    .auth-experience { border-radius: 22px; }
    .auth-story-panel { padding: 25px 20px 23px; }
    .story-topline { font-size: 9px; }
    .story-copy { margin-top: 31px; }
    .story-copy h1 { font-size: 33px; letter-spacing: -1.5px; }
    .story-copy p { margin-top: 16px; font-size: 12px; }
    .auth-feature-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 25px; }
    .auth-feature-grid article { min-height: 76px; padding: 11px 9px; }
    .auth-feature-grid article > span { flex-basis: 29px; width: 29px; height: 29px; }
    .auth-feature-grid strong { font-size: 9.5px; }
    .auth-feature-grid small { font-size: 8px; }
    .auth-confidence-card { display: none; }
    .auth-form-panel { padding: 32px 19px 35px; }
    .auth-form-heading h2 { font-size: 27px; }
    .auth-field-grid { grid-template-columns: 1fr; gap: 0; }
    .signup-progress { font-size: 8.5px; }
    .signup-progress b { margin: 0 7px; }
    .form-trust-row { gap: 8px 10px; }
}

@media (max-width: 380px) {
    .auth-story-panel { padding-left: 16px; padding-right: 16px; }
    .story-live { display: none; }
    .auth-feature-grid { grid-template-columns: 1fr; }
    .auth-feature-grid article:nth-child(n+3) { display: none; }
    .auth-form-panel { padding-left: 15px; padding-right: 15px; }
    .auth-tab { font-size: 10px; }
    .signup-progress span { white-space: normal; }
}
