/* =====================================================================
   FASTLOAN-PH — Premium customer auth theme (login + register).
   Loaded after user.css on the auth pages only, so it wins over the
   older light-theme auth rules without touching the rest of the app.
   ===================================================================== */

/* The auth screens have no bottom nav and no light chrome, so drop the
   shell padding and the light-theme body wash the rest of the app uses. */
body.user-body.is-auth-page {
    background: #070d18;
}

body.user-body.is-auth-page::before,
body.user-body.is-auth-page::after {
    display: none;
}

body.user-body.is-auth-page .user-shell {
    padding-bottom: 0;
}

.auth-page.register-auth-page,
.auth-page.login-auth-page {
    --fl-ink: #eaf2ff;
    --fl-ink-soft: #a9bcd6;
    --fl-ink-muted: #7e93b0;
    --fl-line: rgba(140, 176, 224, .18);
    --fl-line-strong: rgba(150, 190, 240, .34);
    --fl-glass: rgba(17, 30, 52, .72);
    --fl-glass-soft: rgba(22, 38, 63, .55);
    --fl-accent: #34d399;
    --fl-accent-deep: #0f9f74;
    --fl-gold: #e7c073;
    --fl-blue: #5aa9ff;

    position: relative;
    isolation: isolate;
    min-height: 100vh;
    padding: 34px 16px 48px;
    color: var(--fl-ink);
    background:
        radial-gradient(46rem 34rem at 12% -12%, rgba(52, 211, 153, .20), transparent 60%),
        radial-gradient(40rem 34rem at 92% 4%, rgba(90, 169, 255, .22), transparent 62%),
        radial-gradient(52rem 40rem at 50% 120%, rgba(231, 192, 115, .12), transparent 64%),
        linear-gradient(165deg, #060c18 0%, #0a1426 42%, #08101f 100%);
}

/* Fine grid overlay for depth. */
.auth-page.register-auth-page::before,
.auth-page.login-auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 56px 56px, 56px 56px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 28%, #000 30%, transparent 100%);
    mask-image: radial-gradient(70% 60% at 50% 28%, #000 30%, transparent 100%);
}

/* Vignette. */
.auth-page.register-auth-page::after,
.auth-page.login-auth-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(90% 70% at 50% 0%, transparent 40%, rgba(3, 7, 14, .72) 100%);
}

.register-auth-shell {
    gap: 20px;
    animation: flAuthRise .6s cubic-bezier(.2, .8, .2, 1) both;
}

.login-auth-shell {
    width: min(600px, 100%);
}

@keyframes flAuthRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Brand block ---------- */
.register-brand-block {
    padding-top: 4px;
}

.register-brand-mark {
    width: 78px;
    height: 78px;
    padding: 12px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
    border: 1px solid var(--fl-line-strong);
    box-shadow: 0 18px 38px rgba(2, 8, 20, .55), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.auth-brand-kicker {
    color: var(--fl-accent);
    letter-spacing: .24em;
    font-size: 11px;
}

.register-brand-wordmark {
    letter-spacing: -.045em;
}

.register-brand-wordmark span,
.register-brand-wordmark span:first-child,
.register-brand-wordmark span:last-child {
    color: #f4f9ff;
    background: linear-gradient(100deg, #ffffff 0%, #cfe6ff 45%, var(--fl-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.register-accreditation-row {
    gap: 10px;
}

.register-accreditation-item,
.register-accreditation-item.is-alt {
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--fl-line);
    color: var(--fl-ink-soft);
    font-size: 12.5px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.register-accreditation-item svg { color: var(--fl-accent); }
.register-accreditation-item.is-alt svg { color: var(--fl-gold); }

.register-brand-subtitle {
    margin-top: 16px;
    color: var(--fl-ink-soft);
    font-size: 15px;
    line-height: 1.65;
}

/* ---------- Card ---------- */
.register-card {
    position: relative;
    border-radius: 26px;
    padding: 26px 24px;
    background: linear-gradient(170deg, var(--fl-glass), var(--fl-glass-soft));
    border: 1px solid var(--fl-line-strong);
    box-shadow:
        0 34px 80px rgba(2, 8, 20, .6),
        inset 0 1px 0 rgba(255, 255, 255, .09);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
    backdrop-filter: blur(20px) saturate(1.25);
    overflow: hidden;
}

/* Accent hairline across the top of the card. */
.register-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fl-accent), var(--fl-blue), transparent);
    opacity: .85;
}

.login-card { padding-top: 26px; }

.register-alert,
.register-card .alert,
.register-card .alert-error {
    border-radius: 14px;
    background: rgba(220, 53, 69, .16);
    border: 1px solid rgba(255, 128, 140, .38);
    color: #ffd7dc;
    font-weight: 700;
}

.login-note {
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(52, 211, 153, .12), rgba(90, 169, 255, .10));
    border: 1px solid var(--fl-line);
    color: var(--fl-ink-soft);
    font-size: 13.5px;
    line-height: 1.65;
}

/* ---------- Fields ---------- */
.register-label {
    color: var(--fl-ink);
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.register-label-icon { color: var(--fl-accent); }
.register-label-icon.is-danger { color: var(--fl-gold); }

.register-form input,
.register-form select {
    min-height: 56px;
    border-radius: 16px;
    background: rgba(6, 14, 27, .62);
    border: 1px solid var(--fl-line-strong);
    color: var(--fl-ink);
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.register-form input::placeholder { color: #62789a; }

.register-form input:focus,
.register-form select:focus {
    background: rgba(8, 18, 34, .82);
    border-color: rgba(52, 211, 153, .62);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .14);
}

.register-form select option {
    background: #0b1626;
    color: var(--fl-ink);
}

.register-form input:-webkit-autofill,
.register-form input:-webkit-autofill:hover,
.register-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--fl-ink);
    -webkit-box-shadow: 0 0 0 1000px #0b1626 inset;
    caret-color: var(--fl-ink);
}

/* ---------- Password reveal toggle ---------- */
.auth-input-wrap {
    position: relative;
    display: block;
}

.auth-input-wrap input {
    width: 100%;
    padding-right: 58px;
}

.auth-toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: var(--fl-ink-soft);
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

.auth-toggle-password:hover,
.auth-toggle-password:focus-visible {
    color: var(--fl-accent);
    background: rgba(52, 211, 153, .14);
    outline: none;
}

.auth-toggle-password svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-toggle-password .auth-eye-off { display: none; }
.auth-toggle-password[aria-pressed="true"] .auth-eye-on { display: none; }
.auth-toggle-password[aria-pressed="true"] .auth-eye-off { display: block; }

.register-help { color: var(--fl-ink-muted); font-size: 12.5px; }
.register-help-icon { color: var(--fl-accent); }

.register-terms-box {
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--fl-line);
    color: var(--fl-ink-soft);
}

.register-terms-box a { color: var(--fl-accent); }

.register-terms-box input {
    accent-color: var(--fl-accent);
    background: rgba(6, 14, 27, .8);
}

/* ---------- Submit ---------- */
.register-submit {
    position: relative;
    overflow: hidden;
    min-height: 60px;
    border: 0;
    border-radius: 16px;
    color: #04150f;
    font-size: 17px;
    background: linear-gradient(120deg, #4ade9f 0%, var(--fl-accent) 40%, var(--fl-accent-deep) 100%);
    box-shadow: 0 18px 36px rgba(15, 159, 116, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.register-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 24px 44px rgba(15, 159, 116, .38), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.register-submit:active { transform: translateY(0); }

/* Sheen sweep on hover. */
.register-submit::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    transition: left .55s ease, opacity .25s ease;
}

.register-submit:hover::after { left: 120%; opacity: 1; }

.register-submit.is-busy,
.register-submit:disabled {
    opacity: .7;
    cursor: progress;
    transform: none;
    filter: saturate(.75);
}

/* ---------- Footer / support ---------- */
.register-auth-foot,
.login-auth-foot-inline {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--fl-line);
    border-radius: 16px;
    box-shadow: none;
}

.register-auth-foot p { color: var(--fl-ink-soft); font-size: 14.5px; }

.register-auth-foot a {
    color: var(--fl-accent);
    border-bottom: 1px solid rgba(52, 211, 153, .4);
}

.register-auth-foot a:hover { color: #7ff0c4; }

.login-support-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--fl-line);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(2, 8, 20, .38);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.login-support-card:hover {
    transform: translateY(-3px);
    border-color: var(--fl-line-strong);
    background: rgba(255, 255, 255, .06);
}

.login-support-icon {
    color: var(--fl-accent);
    background: linear-gradient(150deg, rgba(52, 211, 153, .2), rgba(90, 169, 255, .14));
    border: 1px solid var(--fl-line);
}

.login-support-card h2 { color: #f2f7ff; font-size: 15.5px; }
.login-support-card p { color: var(--fl-ink-muted); font-size: 13px; }

.register-security-line,
.login-security-line {
    color: var(--fl-ink-muted);
    font-size: 12.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.register-security-line .register-security-icon { color: var(--fl-accent); }
.register-bottom-note { color: var(--fl-ink-muted); }

@media (max-width: 560px) {
    .auth-page.register-auth-page,
    .auth-page.login-auth-page {
        padding: 22px 12px 32px;
    }

    .register-card { padding: 20px 16px; border-radius: 22px; }
    .register-brand-mark { width: 68px; height: 68px; padding: 10px; border-radius: 18px; }
    .login-support-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .register-auth-shell { animation: none; }
    .register-submit:hover { transform: none; }
    .login-support-card:hover { transform: none; }
}
