/* Auth portal — professional fintech layout (ap- prefix) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ap-primary: rgb(var(--primary-rgb, 16 119 194));
    --ap-primary-soft: rgba(var(--primary-rgb, 16 119 194), 0.08);
    --ap-primary-mid: rgba(var(--primary-rgb, 16 119 194), 0.18);
    --ap-primary-deep: color-mix(in srgb, rgb(var(--primary-rgb, 16 119 194)) 78%, #0c1929);

    --ap-surface: #ffffff;
    --ap-canvas: #f4f6fa;
    --ap-canvas-line: #e4e9f2;
    --ap-ink: #0c1929;
    --ap-ink-muted: #5a6b85;
    --ap-ink-faint: #8b9bb5;
    --ap-border: #d8e0ec;
    --ap-input-bg: #fafbfd;

    --ap-showcase: #f8fafc;
    --ap-showcase-panel: #ffffff;
    --ap-showcase-muted: #5a6b85;
    --ap-success: #0d7a55;
    --ap-success-soft: rgba(13, 122, 85, 0.1);
    --ap-warning: #b45309;
    --ap-warning-soft: rgba(180, 83, 9, 0.1);
    --ap-danger: #c53030;

    --ap-radius-sm: 6px;
    --ap-radius: 10px;
    --ap-radius-lg: 14px;
    --ap-shadow: 0 1px 2px rgba(12, 25, 41, 0.04), 0 12px 40px rgba(12, 25, 41, 0.08);
    --ap-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ap-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

html.ap-auth,
html.ap-auth body {
    height: 100%;
    font-family: var(--ap-font);
    color: var(--ap-ink);
    background: var(--ap-canvas);
    -webkit-font-smoothing: antialiased;
}

html.ap-auth body { overflow-x: hidden; }

/* Loader */
.ap-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: var(--ap-canvas);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    animation: ap-rise 0.45s var(--ap-ease) both;
}

.ap-loader-logo { width: 132px; height: auto; }

.ap-loader-ring {
    width: 40px;
    height: 40px;
    border: 2px solid var(--ap-border);
    border-top-color: var(--ap-primary);
    border-radius: 50%;
    animation: ap-spin 0.85s linear infinite;
}

@keyframes ap-spin { to { transform: rotate(360deg); } }
@keyframes ap-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* Page shell */
.ap-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ap-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, var(--ap-canvas-line) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(var(--ap-canvas-line) 1px, transparent 1px) 0 0 / 48px 48px,
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(var(--primary-rgb, 16 119 194), 0.06), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(var(--primary-rgb, 16 119 194), 0.04), transparent 50%);
    opacity: 0.65;
}

/* Top bar */
.ap-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(216, 224, 236, 0.9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 24px rgba(12, 25, 41, 0.04);
}

.ap-topbar-accent {
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--ap-primary) 20%,
        color-mix(in srgb, var(--ap-primary) 70%, white) 50%,
        var(--ap-primary) 80%,
        transparent 100%
    );
    opacity: 0.85;
}

.ap-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1rem, 3vw, 2rem);
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.ap-topbar-inner .ap-topbar-end {
    margin-left: auto;
}

.ap-topbar-start { flex-shrink: 0; min-width: 0; }

.ap-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.ap-topbar-brand:hover { opacity: 0.88; }

.ap-topbar-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--ap-primary-soft), #fff);
    border: 1px solid var(--ap-border);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb, 16 119 194), 0.12);
    flex-shrink: 0;
}

.ap-topbar-brand-mark img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.ap-topbar-brand-text {
    display: flex;
    align-items: center;
    min-width: 0;
}

.ap-topbar-brand-name {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ap-ink);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ap-topbar-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 100px;
    background: var(--ap-input-bg);
    border: 1px solid var(--ap-border);
}

@media (min-width: 768px) {
    .ap-topbar-nav { display: flex; }
}

.ap-topbar-link {
    padding: 0.45rem 0.9rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ap-ink-muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ap-topbar-link:hover {
    color: var(--ap-ink);
    background: #fff;
    box-shadow: 0 1px 4px rgba(12, 25, 41, 0.06);
}

.ap-topbar-link--muted { font-weight: 500; }

.ap-topbar-end {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.ap-topbar-chips {
    display: none;
    align-items: center;
    gap: 0.4rem;
}

@media (min-width: 900px) {
    .ap-topbar-chips { display: flex; }
}

.ap-topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ap-success);
    background: var(--ap-success-soft);
    border: 1px solid rgba(13, 122, 85, 0.15);
}

.ap-topbar-chip svg { opacity: 0.85; }

.ap-topbar-help {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--ap-radius);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ap-ink);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--ap-border);
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.ap-topbar-help:hover {
    border-color: var(--ap-primary-mid);
    color: var(--ap-primary);
    box-shadow: 0 4px 12px var(--ap-primary-soft);
}

.ap-topbar-help span {
    display: none;
}

@media (min-width: 480px) {
    .ap-topbar-help span { display: inline; }
}

/* Main grid */
.ap-main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .ap-main {
        grid-template-columns: 1fr 1fr;
        min-height: calc(100vh - 62px);
    }

    .ap-showcase-col { order: 1; }
    .ap-form-col { order: 2; }
}

/* Form column */
.ap-form-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--ap-surface);
}

@media (min-width: 1024px) {
    .ap-form-col {
        border-left: 1px solid var(--ap-border);
    }
}

.ap-card {
    width: 100%;
    max-width: 400px;
    background: var(--ap-surface);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: clamp(0.5rem, 2vw, 1rem) 0;
    animation: ap-rise 0.55s 0.05s var(--ap-ease) both;
}

.ap-card.ap-card--wide { max-width: 420px; }

@media (max-width: 1023px) {
    .ap-card {
        border: 1px solid var(--ap-border);
        border-radius: var(--ap-radius-lg);
        box-shadow: var(--ap-shadow);
        padding: clamp(1.5rem, 3vw, 2rem);
    }
}

.ap-card-head { margin-bottom: 1.5rem; }

.ap-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ap-ink-muted);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
}

.ap-back:hover { color: var(--ap-primary); }

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

.ap-title {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ap-ink);
    margin-bottom: 0.35rem;
}

.ap-subtitle {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ap-ink-muted);
}

/* Form elements */
.ap-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ap-form--spaced {
    margin-top: 1.25rem;
}

.ap-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ap-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ap-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ap-ink);
}

.ap-req { color: var(--ap-danger); }

.ap-input-wrap { position: relative; }

.ap-input {
    width: 100%;
    padding: 0.72rem 0.9rem;
    background: var(--ap-input-bg);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--ap-ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.ap-input::placeholder { color: var(--ap-ink-faint); }

.ap-input:focus {
    background: #fff;
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 3px var(--ap-primary-soft);
}

.ap-input.has-toggle { padding-right: 2.75rem; }

.ap-input::-webkit-outer-spin-button,
.ap-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.ap-input[type=number] { -moz-appearance: textfield; }

.ap-toggle-pw {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--ap-ink-faint);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: var(--ap-radius-sm);
    display: flex;
    align-items: center;
    font-size: 1rem;
    transition: color 0.2s, background 0.2s;
}

.ap-toggle-pw:hover {
    color: var(--ap-primary);
    background: var(--ap-primary-soft);
}

.ap-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ap-primary);
    text-decoration: none;
    cursor: pointer;
}

.ap-link:hover { text-decoration: underline; }

/* Checkbox */
.ap-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    user-select: none;
}

.ap-check input { display: none; }

.ap-check-box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1.5px solid var(--ap-border);
    border-radius: 5px;
    background: #fff;
    transition: all 0.2s;
}

.ap-check input:checked ~ .ap-check-box {
    background: var(--ap-primary);
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 3px var(--ap-primary-soft);
}

.ap-check input:checked ~ .ap-check-box::after {
    content: "";
    display: block;
    width: 5px;
    height: 9px;
    margin: 1px auto 0;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(42deg);
}

.ap-check-text {
    font-size: 0.875rem;
    color: var(--ap-ink-muted);
    line-height: 1.5;
}

.ap-check-panel {
    padding: 0.9rem 1rem;
    background: var(--ap-input-bg);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
}

/* Buttons */
.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.78rem 1.25rem;
    border: none;
    border-radius: var(--ap-radius);
    background: var(--ap-primary);
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 16 119 194), 0.25);
}

.ap-btn:hover:not(:disabled) {
    background: var(--ap-primary-deep);
    transform: translateY(-1px);
}

.ap-btn:active:not(:disabled) { transform: translateY(0); }

.ap-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    background: var(--ap-border);
    color: var(--ap-ink-faint);
}

.ap-btn--ghost {
    background: transparent;
    color: var(--ap-primary);
    border: 1px solid var(--ap-primary-mid);
    box-shadow: none;
}

.ap-btn--ghost:hover:not(:disabled) {
    background: var(--ap-primary-soft);
    transform: none;
}

.ap-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--ap-ink-faint);
    margin: 0.25rem 0;
}

.ap-divider::before,
.ap-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ap-border);
}

.ap-footnote {
    font-size: 0.75rem;
    color: var(--ap-ink-faint);
    text-align: center;
    line-height: 1.6;
    margin-top: 0.25rem;
}

.ap-footnote a { color: var(--ap-ink-muted); text-decoration: none; }
.ap-footnote a:hover { color: var(--ap-primary); }

/* Alerts & info */
.ap-alert {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--ap-radius);
    background: var(--ap-primary-soft);
    border: 1px solid var(--ap-primary-mid);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--ap-ink-muted);
}

.ap-alert-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ap-radius-sm);
    background: var(--ap-primary);
    color: #fff;
}

.ap-alert strong { color: var(--ap-ink); font-weight: 600; }

/* Contact / info list */
.ap-info-list {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    overflow: hidden;
    background: var(--ap-input-bg);
}

.ap-info-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.ap-info-item + .ap-info-item { border-top: 1px solid var(--ap-border); }

.ap-info-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ap-primary);
    flex-shrink: 0;
}

/* OTP */
.ap-otp-input {
    text-align: center;
    letter-spacing: 0.35em;
    font-weight: 700;
    font-size: 1.25rem;
}

.ap-otp-hint {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--ap-ink-faint);
}

.ap-otp-hint strong,
#otpTimer { color: var(--ap-primary); font-weight: 600; }

/* OTP blocks (registration verify) */
.ap-otp-block {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: 1rem;
    background: var(--ap-input-bg);
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.ap-otp-block.active {
    border-color: var(--ap-primary);
    box-shadow: 0 0 0 3px var(--ap-primary-soft);
}

.ap-otp-block.done {
    border-color: var(--ap-success);
    background: var(--ap-success-soft);
}

.ap-otp-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ap-otp-block-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ap-ink-muted);
}

.ap-otp-block-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ap-ink);
    margin-top: 0.15rem;
}

.ap-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    background: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--ap-ink);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.ap-send-btn:hover:not(:disabled) {
    border-color: var(--ap-primary);
    color: var(--ap-primary);
}

.ap-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ap-send-btn.sent {
    color: var(--ap-warning);
    background: var(--ap-warning-soft);
    border-color: rgba(180, 83, 9, 0.25);
}

.ap-otp-field-wrap { position: relative; }

.ap-otp-check {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ap-success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Progress */
.ap-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.ap-progress-track {
    flex: 1;
    height: 4px;
    background: var(--ap-border);
    border-radius: 4px;
    overflow: hidden;
}

.ap-progress-fill {
    height: 100%;
    background: var(--ap-primary);
    border-radius: 4px;
    transition: width 0.4s var(--ap-ease);
}

.ap-progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ap-ink-faint);
    white-space: nowrap;
}

/* Password strength */
.ap-strength {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.ap-strength-bar {
    flex: 1;
    height: 3px;
    background: var(--ap-border);
    border-radius: 3px;
    overflow: hidden;
}

.ap-strength-bar span {
    display: block;
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s, background 0.3s;
}

.ap-strength-label {
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 44px;
    text-align: right;
}

/* Showcase column — light theme */
.ap-showcase-col {
    display: none;
    background: var(--ap-showcase);
    color: var(--ap-ink);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

@media (min-width: 1024px) {
    .ap-showcase-col {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: clamp(2rem, 4vh, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
        animation: ap-rise 0.6s 0.1s var(--ap-ease) both;
        overflow-y: auto;
        max-height: calc(100vh - 62px);
    }
}

.ap-showcase-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.35rem;
    flex: 0 1 auto;
}

@media (min-width: 1024px) {
    .ap-showcase-shell {
        margin: 0 auto;
    }
}

.ap-showcase-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ap-showcase-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.ap-showcase-orb--1 {
    width: 320px;
    height: 320px;
    top: -100px;
    right: -80px;
    background: rgba(var(--primary-rgb, 16 119 194), 0.12);
    animation: ap-float 12s ease-in-out infinite;
}

.ap-showcase-orb--2 {
    width: 240px;
    height: 240px;
    bottom: 5%;
    left: -60px;
    background: rgba(var(--primary-rgb, 16 119 194), 0.06);
    animation: ap-float 14s ease-in-out infinite reverse;
}

@keyframes ap-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(12px, -16px); }
}

.ap-showcase-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--ap-canvas-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--ap-canvas-line) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.5;
}

.ap-showcase-accent {
    display: none;
}

.ap-showcase-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.ap-showcase-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.ap-showcase-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 100px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ap-success);
    background: var(--ap-success-soft);
    border: 1px solid rgba(13, 122, 85, 0.15);
}

.ap-showcase-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ap-success);
    box-shadow: 0 0 0 3px rgba(13, 122, 85, 0.15);
    animation: ap-pulse 2s ease infinite;
}

@keyframes ap-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.92); }
}

.ap-showcase-hero { display: flex; flex-direction: column; gap: 0.65rem; }

.ap-showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    border: 1px solid var(--ap-primary-mid);
    background: var(--ap-primary-soft);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ap-primary-deep);
    width: fit-content;
}

.ap-showcase-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ap-primary);
}

.ap-showcase-col h1.ap-showcase-title {
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.25;
    max-width: 22ch;
    color: var(--ap-ink);
}

.ap-showcase-col h1.ap-showcase-title em {
    font-style: normal;
    color: var(--ap-primary);
}

.ap-showcase-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--ap-showcase-muted);
    max-width: 38ch;
}

.ap-showcase-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    width: 100%;
}

.ap-showcase-stat {
    padding: 0.7rem 0.5rem;
    border-radius: var(--ap-radius);
    background: var(--ap-showcase-panel);
    border: 1px solid var(--ap-border);
    text-align: center;
    box-shadow: 0 1px 3px rgba(12, 25, 41, 0.04);
    transition: border-color 0.25s, box-shadow 0.25s;
    min-width: 0;
}

.ap-showcase-stat:hover {
    border-color: var(--ap-primary-mid);
    box-shadow: 0 4px 12px var(--ap-primary-soft);
}

.ap-showcase-stat-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ap-primary-deep);
    line-height: 1.2;
}

.ap-showcase-stat-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ap-showcase-muted);
    margin-top: 0.2rem;
}

.ap-showcase-extra {
    width: 100%;
    max-width: 100%;
}

.ap-showcase-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}

.ap-showcase-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    max-width: 100%;
    border-radius: var(--ap-radius);
    border: 1px solid var(--ap-border);
    background: var(--ap-showcase-panel);
    box-shadow: 0 1px 3px rgba(12, 25, 41, 0.04);
    transition: transform 0.2s var(--ap-ease), border-color 0.2s, box-shadow 0.2s;
    animation: ap-rise 0.5s var(--item-delay, 0s) var(--ap-ease) both;
}

.ap-showcase-item:hover {
    transform: translateY(-1px);
    border-color: var(--ap-primary-mid);
    box-shadow: 0 6px 16px rgba(12, 25, 41, 0.06);
}

.ap-showcase-item-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--ap-primary-soft);
    border: 1px solid var(--ap-primary-mid);
    color: var(--ap-primary);
}

.ap-showcase-item-body { min-width: 0; }

.ap-showcase-item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
    color: var(--ap-ink);
}

.ap-showcase-item-sub {
    font-size: 0.6875rem;
    color: var(--ap-showcase-muted);
    line-height: 1.4;
}

.ap-showcase-item-chevron {
    color: var(--ap-ink-faint);
    transition: color 0.2s, transform 0.2s;
}

.ap-showcase-item:hover .ap-showcase-item-chevron {
    color: var(--ap-primary);
    transform: translateX(2px);
}

/* Abstract dashboard preview */
.ap-showcase-visual {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 108px;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.ap-mock-card {
    position: absolute;
    border-radius: 10px;
    border: 1px solid var(--ap-border);
    background: var(--ap-showcase-panel);
    padding: 0.55rem 0.65rem;
    box-shadow: 0 4px 16px rgba(12, 25, 41, 0.06);
}

.ap-mock-card--1 {
    left: 0;
    top: 0;
    width: 158px;
    z-index: 2;
    animation: ap-float 8s ease-in-out infinite;
}

.ap-mock-card--2 {
    right: 0;
    top: 6px;
    width: 118px;
    z-index: 3;
    animation: ap-float 9s ease-in-out infinite 0.5s;
}

.ap-mock-card--3 {
    left: 24px;
    bottom: 0;
    width: 252px;
    height: 48px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    animation: ap-float 10s ease-in-out infinite 1s;
}

.ap-mock-label {
    display: block;
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ap-ink-faint);
    margin-bottom: 0.2rem;
}

.ap-mock-value {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ap-ink);
}

.ap-mock-bar {
    display: block;
    height: 4px;
    margin-top: 0.45rem;
    background: var(--ap-border);
    border-radius: 4px;
    overflow: hidden;
}

.ap-mock-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--ap-primary), color-mix(in srgb, var(--ap-primary) 60%, white));
    border-radius: 4px;
}

.ap-mock-pill {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.15rem 0.45rem;
    border-radius: 100px;
    font-size: 0.625rem;
    font-weight: 700;
    background: var(--ap-success-soft);
    color: var(--ap-success);
    border: 1px solid rgba(13, 122, 85, 0.2);
}

.ap-mock-dots {
    display: flex;
    gap: 3px;
}

.ap-mock-dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ap-border);
}

.ap-mock-chart {
    flex: 1;
    height: 28px;
    background: linear-gradient(
        180deg,
        transparent 30%,
        rgba(var(--primary-rgb, 16 119 194), 0.35) 30%,
        rgba(var(--primary-rgb, 16 119 194), 0.35) 45%,
        transparent 45%,
        transparent 55%,
        rgba(var(--primary-rgb, 16 119 194), 0.2) 55%,
        rgba(var(--primary-rgb, 16 119 194), 0.2) 70%,
        transparent 70%,
        transparent 80%,
        rgba(var(--primary-rgb, 16 119 194), 0.45) 80%,
        rgba(var(--primary-rgb, 16 119 194), 0.45) 100%
    );
    border-radius: 4px;
    opacity: 0.9;
}

/* Steps in showcase */
.ap-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
}

.ap-step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    max-width: 100%;
    border-radius: var(--ap-radius);
    border: 1px solid var(--ap-border);
    background: var(--ap-showcase-panel);
    box-shadow: 0 1px 3px rgba(12, 25, 41, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ap-step:hover {
    border-color: var(--ap-primary-mid);
    box-shadow: 0 4px 12px var(--ap-primary-soft);
}

.ap-step-muted { opacity: 0.55; }

.ap-step-num,
.ap-step-ico {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ap-radius-sm);
    background: var(--ap-primary-soft);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ap-primary);
}

.ap-step-ico.done { background: var(--ap-success-soft); color: var(--ap-success); }

.ap-step-title { font-size: 0.8125rem; font-weight: 600; color: var(--ap-ink); }
.ap-step-sub { font-size: 0.6875rem; color: var(--ap-showcase-muted); }

.ap-step-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    background: var(--ap-warning-soft);
    color: var(--ap-warning);
    border: 1px solid rgba(180, 83, 9, 0.2);
}

.ap-step-badge.verified {
    background: var(--ap-success-soft);
    color: var(--ap-success);
    border-color: rgba(13, 122, 85, 0.2);
}

.ap-step-badge-muted {
    background: var(--ap-input-bg);
    color: var(--ap-ink-faint);
    border-color: var(--ap-border);
}

.ap-step-connector {
    width: 1px;
    height: 8px;
    background: var(--ap-border);
    margin-left: 1.4rem;
}

.ap-showcase-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ap-border);
    width: 100%;
}

.ap-showcase-foot-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 100px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ap-ink-muted);
    background: var(--ap-showcase-panel);
    border: 1px solid var(--ap-border);
}

.ap-showcase-foot-pill svg {
    color: var(--ap-success);
    flex-shrink: 0;
}

/* Tips list (reset password) */
.ap-tips {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem 0.95rem;
    border-radius: var(--ap-radius);
    border: 1px solid var(--ap-border);
    background: var(--ap-showcase-panel);
    box-shadow: 0 1px 3px rgba(12, 25, 41, 0.04);
    width: 100%;
    max-width: 100%;
}

.ap-tips-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ap-ink-faint);
    margin-bottom: 0.25rem;
}

.ap-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--ap-ink-muted);
}

.ap-tip svg { color: var(--ap-success); flex-shrink: 0; }

.ap-tip-warn { color: var(--ap-ink-faint); }

.ap-tip-warn svg { color: var(--ap-danger); }

/* Modal */
.ap-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(12, 25, 41, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.ap-modal-overlay.open { display: flex; }

.ap-modal {
    width: 100%;
    max-width: 520px;
    max-height: 82vh;
    background: #fff;
    border-radius: var(--ap-radius-lg);
    box-shadow: 0 24px 64px rgba(12, 25, 41, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: ap-rise 0.25s var(--ap-ease);
}

.ap-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ap-border);
    background: var(--ap-input-bg);
}

.ap-modal-title {
    font-size: 0.9375rem;
    font-weight: 700;
}

.ap-modal-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-sm);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ap-ink-muted);
}

.ap-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ap-modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--ap-border);
    display: flex;
    justify-content: flex-end;
}

.ap-guideline h6 {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.ap-guideline.dos h6 { color: var(--ap-success); }
.ap-guideline.donts h6 { color: var(--ap-danger); }

.ap-guideline ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ap-guideline li {
    font-size: 0.8125rem;
    color: var(--ap-ink-muted);
    line-height: 1.5;
    padding: 0.55rem 0.7rem;
    border-radius: var(--ap-radius-sm);
}

.ap-guideline.dos li { background: var(--ap-success-soft); }
.ap-guideline.donts li { background: rgba(197, 48, 48, 0.06); }

/* Mobile */
@media (max-width: 1023px) {
    html.ap-auth body { overflow-y: auto; }

    .ap-form-col {
        align-items: flex-start;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .ap-mobile-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .ap-mobile-stat {
        text-align: center;
        padding: 0.6rem 0.35rem;
        border-radius: var(--ap-radius-sm);
        background: var(--ap-input-bg);
        border: 1px solid var(--ap-border);
    }

    .ap-mobile-stat strong {
        display: block;
        font-size: 0.9375rem;
        font-weight: 700;
        color: var(--ap-primary-deep);
        letter-spacing: -0.02em;
    }

    .ap-mobile-stat span {
        font-size: 0.5625rem;
        color: var(--ap-ink-faint);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 600;
    }
}

@media (min-width: 1024px) {
    .ap-mobile-stats { display: none; }
}

.invalid-feedback {
    font-size: 0.75rem;
    color: var(--ap-danger);
}
