/* ============================================================================
   Auth UI — yalnızca giriş / onay kabuğu (layouts/auth.php)
   Kaynak: app.css AUTH + midas-ui §18 + mx-auth keyframes
   Ana uygulama shell bu dosyayı yüklemez.
   ============================================================================ */

/* ---------------- AUTH ---------------- */
.auth-body {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: #f4f5f7;
}
.auth-shell { width: 100%; max-width: 420px; }
.auth-card {
    background: white;
    border-radius: 8px;
    padding: 32px 24px;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    text-align: left;
    overflow: hidden;
}
.auth-hero {
    margin: -32px -24px 22px;
    padding: 24px 24px 20px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
.auth-hero-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.auth-hero-copy { min-width: 0; }
.auth-brand {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 6px;
}
.auth-brand .auth-logo { margin-bottom: 0; flex-shrink: 0; }
.auth-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 12px; border-radius: 8px; padding: 6px; background: #fff; box-shadow: none; }
.auth-hero-logo .auth-logo { margin-bottom: 0; }
.auth-title { margin: 0; font-size: 1.25rem; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.auth-subtitle { margin: 0 0 24px; color: #64748b; font-size: 14px; }
.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 0 16px; height: 40px;
    background: #f3f4f6; border: 0; border-radius: 8px;
    color: #0f172a; font-weight: 500; font-size: 15px;
    cursor: pointer; transition: background .15s;
}
.btn-google:hover { background: #e8eaed; text-decoration: none; }
.auth-divider { display: flex; align-items: center; gap: 8px; margin: 20px 0; color: #64748b; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }
.auth-warning { padding: 12px; background: #fef3c7; color: #92400e; border-radius: 8px; font-size: 13px; margin-top: 16px; }
.auth-footer { margin-top: 24px; color: #64748b; text-align: center; }
.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: text;
}
.auth-remember input { width: 16px; height: 16px; margin: 0; accent-color: #2563eb; }
.auth-login-actions { margin: 0; }
.auth-lead {
    margin: 0 0 18px;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.auth-lead-line--muted { font-size: 12px; color: #64748b; }

.auth-card--approve { text-align: center; }
.auth-hero--approve { margin-bottom: 1.25rem; }
.auth-approve-stage {
    margin: 0 0 1.35rem;
    padding: 1.35rem 1.1rem 1.15rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
}
.auth-approve-stage.is-done {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    border-color: #a7f3d0;
}
.auth-approve-stage.is-error {
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
    border-color: #fecaca;
}
.auth-approve-orb {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
}
.auth-approve-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.35);
}
.auth-approve-orb-ring--delay { animation-delay: 1s; }
.auth-approve-orb-icon {
    position: absolute;
    inset: 12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.auth-approve-stage.is-done .auth-approve-orb-ring { animation: none; border-color: #34d399; }
.auth-approve-stage.is-done .auth-approve-orb-icon { background: #ecfdf5; color: #059669; }
.auth-approve-stage.is-error .auth-approve-orb-ring { animation: none; border-color: #f87171; }
.auth-approve-stage.is-error .auth-approve-orb-icon { background: #fef2f2; color: #dc2626; }
@keyframes auth-approve-pulse {
    0% { transform: scale(0.85); opacity: 0.85; }
    100% { transform: scale(1.35); opacity: 0; }
}
.auth-approve-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.02em;
}
.auth-approve-lead {
    display: block;
    margin: 0 0 1.25rem;
    text-align: center;
    color: #64748b;
}
.auth-approve-panel {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.auth-approve-panel.is-done,
.auth-approve-panel.is-error { background: transparent; border: 0; }
.auth-approve-status {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    color: #0f172a;
    letter-spacing: -.01em;
}
.auth-approve-timer {
    margin: .4rem 0 0;
    font-size: .8rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}
.auth-approve-timer strong { color: #1e293b; font-weight: 650; }
.auth-approve-hints {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: .35rem;
    font-size: .78rem;
    line-height: 1.45;
    color: #64748b;
    text-align: left;
}
.auth-approve-hints li {
    position: relative;
    padding-left: 1rem;
}
.auth-approve-hints li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #94a3b8;
}
.auth-approve-actions {
    display: grid;
    gap: .65rem;
}
.auth-approve-actions .btn-block { width: 100%; }
.auth-approve-sms { margin-top: .15rem; }
.auth-approve-resend-hint {
    display: inline;
    margin-left: .35rem;
    font-weight: 500;
    opacity: .75;
}
.auth-approve-resend-hint[hidden] { display: none; }

.auth-eyebrow {
    display: inline-flex;
    margin: 0 0 6px;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--merp-primary, #4b59a7);
    background: color-mix(in srgb, var(--merp-primary, #4b59a7) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--merp-primary, #4b59a7) 18%, transparent);
}
.auth-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}
.auth-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    min-width: 0;
}
.auth-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 11px;
    left: calc(50% + 13px);
    width: calc(100% - 26px);
    height: 2px;
    background: #e2e8f0;
}
.auth-step-num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #fff;
    border: 2px solid #e2e8f0;
}
.auth-step-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}
.auth-step--active .auth-step-num {
    color: #fff;
    background: var(--merp-primary, #4b59a7);
    border-color: var(--merp-primary, #4b59a7);
}
.auth-step--active .auth-step-label { color: var(--merp-primary, #4b59a7); }
.auth-step-line { display: none; }
.auth-email-field {
    display: flex;
    align-items: stretch;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.auth-email-field:focus-within {
    outline: none;
    border-color: #d1d5db;
    box-shadow: none;
}
.auth-email-local {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}
.auth-email-domain {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 14px;
    white-space: nowrap;
    user-select: text;
}
.auth-password-field { position: relative; }
.auth-password-field .form-input { padding-right: 44px; }
.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #f3f4f6;
    color: #64748b;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.auth-password-toggle:hover { color: #111827; background: #e8eaed; }
.auth-password-icon { width: 18px; height: 18px; }
.auth-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}
.auth-submit-icon { width: 18px; height: 18px; flex-shrink: 0; }
.auth-login-form { text-align: left; }
.auth-recaptcha { display: flex; justify-content: center; margin: 0 0 16px; }
.auth-recaptcha .g-recaptcha { transform-origin: center top; }
.auth-recaptcha-note { margin: 12px 0 0; font-size: 11px; color: #64748b; text-align: center; }
.auth-recaptcha-note a { color: #64748b; }

/* ============================================================
   18 — GİRİŞ (AUTH)
   ============================================================ */
.auth-body {
    position: relative;
    overflow: hidden;
    background: #0b1020;
    --auth-spot-x: 50%;
    --auth-spot-y: 40%;
}

.auth-body::before { display: none; }

.auth-wallpaper {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: #0b1020;
}

.auth-wallpaper-scene {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    animation: mx-auth-kenburns 36s ease-in-out infinite alternate;
    will-change: transform;
}

.auth-wallpaper-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    filter: saturate(1.08) contrast(1.05);
}

.auth-wallpaper-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 20% 25%, rgba(99, 120, 220, 0.35), transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(59, 130, 246, 0.28), transparent 62%),
        radial-gradient(ellipse 40% 35% at 60% 15%, rgba(129, 140, 248, 0.22), transparent 55%);
    mix-blend-mode: screen;
    animation: mx-auth-mesh 20s ease-in-out infinite alternate;
}

.auth-wallpaper-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    will-change: transform;
}

.auth-wallpaper-orb--a {
    width: min(56vw, 720px);
    height: min(56vw, 720px);
    top: -12%;
    left: -8%;
    background: radial-gradient(circle, rgba(107, 127, 212, 0.75) 0%, transparent 70%);
    animation: mx-auth-orb-a 16s ease-in-out infinite alternate;
}

.auth-wallpaper-orb--b {
    width: min(62vw, 820px);
    height: min(62vw, 820px);
    right: -14%;
    bottom: -18%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.55) 0%, transparent 72%);
    animation: mx-auth-orb-b 22s ease-in-out infinite alternate;
}

.auth-wallpaper-orb--c {
    width: min(38vw, 480px);
    height: min(38vw, 480px);
    top: 38%;
    left: 55%;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.45) 0%, transparent 70%);
    animation: mx-auth-orb-c 14s ease-in-out infinite alternate;
    opacity: 0.45;
}

.auth-wallpaper-ring {
    position: absolute;
    left: 50%;
    top: 48%;
    border-radius: 50%;
    border: 1px solid rgba(165, 180, 252, 0.18);
    box-shadow:
        0 0 40px rgba(99, 120, 220, 0.15),
        inset 0 0 40px rgba(147, 197, 253, 0.06);
}

.auth-wallpaper-ring--a {
    width: min(110vw, 980px);
    height: min(110vw, 980px);
    margin: calc(min(110vw, 980px) / -2) 0 0 calc(min(110vw, 980px) / -2);
    animation: mx-auth-spin 48s linear infinite;
    background:
        conic-gradient(from 0deg,
            transparent 0%,
            rgba(147, 197, 253, 0.55) 8%,
            transparent 16%,
            transparent 55%,
            rgba(129, 140, 248, 0.4) 68%,
            transparent 78%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    opacity: 0.55;
}

.auth-wallpaper-ring--b {
    width: min(78vw, 700px);
    height: min(78vw, 700px);
    margin: calc(min(78vw, 700px) / -2) 0 0 calc(min(78vw, 700px) / -2);
    animation: mx-auth-spin-rev 28s linear infinite;
    background:
        conic-gradient(from 140deg,
            transparent 0%,
            rgba(96, 165, 250, 0.5) 10%,
            transparent 22%,
            transparent 72%,
            color-mix(in srgb, var(--merp-primary, #4b59a7) 45%, transparent) 84%,
            transparent 94%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    opacity: 0.4;
}

.auth-wallpaper-mark {
    position: absolute;
    left: 50%;
    top: 46%;
    width: min(52vw, 560px);
    height: auto;
    max-height: min(42vh, 420px);
    object-fit: contain;
    transform: translate(-50%, -50%);
    opacity: 0.07;
    filter: grayscale(0.15) brightness(1.4) contrast(1.05);
    animation: mx-auth-mark-drift 24s ease-in-out infinite alternate;
    user-select: none;
}

.auth-wallpaper-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 65% at 50% 45%, transparent 20%, rgba(8, 12, 24, 0.45) 70%, rgba(6, 9, 18, 0.82) 100%),
        linear-gradient(180deg, rgba(8, 12, 24, 0.25) 0%, transparent 30%, transparent 70%, rgba(8, 12, 24, 0.4) 100%);
}

.auth-wallpaper-grain {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    animation: mx-auth-grain 0.45s steps(2) infinite;
}

.auth-wallpaper-spot {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 32vmax at var(--auth-spot-x) var(--auth-spot-y), rgba(147, 197, 253, 0.16), transparent 55%);
    mix-blend-mode: screen;
    transition: none;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
}

.auth-stage {
    position: relative;
    isolation: isolate;
    padding: 10px;
}

.auth-stage-glow {
    display: none !important;
}

.auth-stage-spin {
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    z-index: 0;
    pointer-events: none;
    background:
        conic-gradient(from 0deg,
            transparent 0%,
            color-mix(in srgb, var(--merp-primary, #4b59a7) 70%, #93c5fd) 8%,
            transparent 18%,
            transparent 42%,
            color-mix(in srgb, #818cf8 65%, transparent) 52%,
            transparent 62%,
            transparent 100%);
    animation: mx-auth-spin 6s linear infinite;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1.5px;
    opacity: 0.85;
}

.auth-card {
    position: relative;
    z-index: 1;
    border-radius: 8px;
    padding: 36px 28px 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    text-align: left;
    overflow: hidden;
}

.auth-card--login {
    transform: none;
}

@media (hover: none), (pointer: coarse) {
    .auth-card--login {
        transform: none;
        will-change: auto;
    }

    .auth-card-shine {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, transparent 42%, transparent 100%);
        opacity: 0.55;
    }
}

.auth-card--enter {
    animation: mx-auth-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.auth-card--enter .auth-brand-block,
.auth-card--enter .auth-hero-top,
.auth-card--enter .auth-lead,
.auth-card--enter .auth-steps,
.auth-card--enter .auth-login-form > *,
.auth-card--enter .auth-footer,
.auth-card--enter .auth-recaptcha-note {
    animation: mx-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-card--enter .auth-brand-block,
.auth-card--enter .auth-hero-top { animation-delay: 0.08s; }
.auth-card--enter .auth-lead { animation-delay: 0.14s; }
.auth-card--enter .auth-steps { animation-delay: 0.2s; }
.auth-card--enter .auth-login-form > *:nth-child(1) { animation-delay: 0.24s; }
.auth-card--enter .auth-login-form > *:nth-child(2) { animation-delay: 0.28s; }
.auth-card--enter .auth-login-form > *:nth-child(3) { animation-delay: 0.32s; }
.auth-card--enter .auth-login-form > *:nth-child(4) { animation-delay: 0.36s; }
.auth-card--enter .auth-login-form > *:nth-child(5) { animation-delay: 0.4s; }
.auth-card--enter .auth-login-form > *:nth-child(6) { animation-delay: 0.44s; }
.auth-card--enter .auth-login-form > *:nth-child(n+7) { animation-delay: 0.48s; }
.auth-card--enter .auth-recaptcha-note { animation-delay: 0.5s; }
.auth-card--enter .auth-footer { animation-delay: 0.54s; }

.auth-card-shine {
    display: none;
}

.auth-card:hover {
    box-shadow: none;
}

.auth-card.is-submitting {
    box-shadow: none;
}

.auth-card--approve { text-align: center; }

.auth-hero {
    margin: -36px -28px 26px;
    padding: 26px 28px 22px;
    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--merp-primary, #4b59a7) 11%, var(--merp-surface, #fff)) 0%,
            color-mix(in srgb, var(--merp-primary, #4b59a7) 4%, var(--merp-surface, #fff)) 55%,
            var(--merp-surface, #fff) 100%);
    border-bottom: 1px solid color-mix(in srgb, var(--merp-border, #e4e8f0) 75%, var(--merp-primary, #4b59a7) 12%);
    position: relative;
}

.auth-hero--brand {
    text-align: center;
    padding: 30px 28px 24px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%,
            color-mix(in srgb, var(--merp-primary, #4b59a7) 14%, transparent),
            transparent 60%),
        linear-gradient(180deg,
            color-mix(in srgb, var(--merp-primary, #4b59a7) 8%, var(--merp-surface, #fff)) 0%,
            var(--merp-surface, #fff) 100%);
}

.auth-hero--approve { margin-bottom: 1.25rem; }

.auth-brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.auth-hero-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.auth-hero-logo {
    flex-shrink: 0;
    position: relative;
}

.auth-hero-logo--xl {
    width: 128px;
    height: 128px;
    display: grid;
    place-items: center;
}

.auth-logo-halo,
.auth-logo-ring,
.auth-stage-spin {
    display: none !important;
}

.auth-hero-copy { min-width: 0; position: relative; z-index: 1; }

.auth-hero-copy--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.auth-brand {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 6px;
}

.auth-brand .auth-logo {
    margin-bottom: 0;
    flex-shrink: 0;
}

.auth-logo {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 16px;
    border-radius: 8px;
    padding: 6px;
    background: #fff;
    box-shadow: none;
    border: 1px solid #e5e7eb;
}

.auth-logo--xl {
    width: 112px;
    height: 112px;
    margin-bottom: 0;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.auth-hero-logo .auth-logo { margin-bottom: 0; }

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 8px;
    padding: 4px 11px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--merp-primary, #4b59a7);
    background: var(--ctl-btn, #f3f4f6);
    border: 0;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0;
    color: var(--merp-text, #1a2233);
}

.auth-hero--brand .auth-lead {
    text-align: center;
    align-items: center;
}

.auth-lead {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0 0 18px;
    line-height: 1.5;
    font-size: 13px;
    color: var(--merp-text, #334155);
}

.auth-lead-line--muted {
    font-size: 12px;
    color: var(--merp-text-muted, #5d6b81);
}

.auth-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    border: none;
    border-radius: 0;
}

.auth-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    position: relative;
    padding: 0;
    min-width: 0;
    font-size: inherit;
    color: var(--merp-text-muted, #5d6b81);
}

.auth-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 12px;
    left: calc(50% + 14px);
    width: calc(100% - 28px);
    height: 2px;
    background: color-mix(in srgb, var(--merp-border, #e4e8f0) 85%, var(--merp-primary, #4b59a7) 15%);
    border-radius: 1px;
    z-index: 0;
}

.auth-step-num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: var(--merp-text-muted, #5d6b81);
    background: var(--merp-surface, #fff);
    border: 2px solid var(--merp-border, #e4e8f0);
}

.auth-step-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: var(--merp-text-muted, #5d6b81);
}

.auth-step--active .auth-step-num {
    color: #fff;
    background: var(--merp-primary, #4b59a7);
    border-color: var(--merp-primary, #4b59a7);
    box-shadow: none;
}

.auth-step--active .auth-step-label {
    color: var(--merp-primary, #4b59a7);
}

.auth-step-line { display: none; }

@media (max-width: 380px) {
    .auth-hero { padding: 22px 22px 18px; }
    .auth-hero--brand { padding: 24px 20px 18px; }
    .auth-hero-top { gap: 12px; }
    .auth-logo { width: 48px; height: 48px; }
    .auth-hero-logo--xl { width: 104px; height: 104px; }
    .auth-logo--xl { width: 92px; height: 92px; border-radius: 8px; padding: 12px; }
    .auth-title { font-size: 1.28rem; }
    .auth-step-label { font-size: 9px; }
    .auth-stage { padding: 6px; }
}

.auth-email-field,
.auth-password-field .form-input {
    border-radius: 8px;
}

.auth-email-field:focus-within,
.auth-password-field .form-input:focus {
    box-shadow: none;
}

.auth-submit-btn.btn-primary {
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    min-height: 48px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    border-radius: 8px;
    background: var(--merp-primary, #4b59a7);
    border-color: var(--merp-primary, #4b59a7);
    box-shadow: none;
    transition: background 0.15s ease;
}

.auth-submit-btn.btn-primary::after {
    display: none;
}

.auth-submit-btn.btn-primary:hover {
    background: var(--merp-primary-hover, #3d4889);
    box-shadow: none;
    transform: none;
}

.auth-submit-btn.btn-primary:active {
    transform: none;
    box-shadow: none;
}

.auth-theme-wrap { margin-top: 24px; }

html[data-theme="dark"] .auth-body::before {
    display: none;
}

html[data-theme="dark"] .auth-wallpaper-vignette {
    background:
        radial-gradient(ellipse 70% 65% at 50% 45%, transparent 15%, rgba(4, 8, 18, 0.55) 70%, rgba(2, 5, 12, 0.88) 100%),
        linear-gradient(180deg, rgba(4, 8, 18, 0.35) 0%, transparent 30%, transparent 70%, rgba(4, 8, 18, 0.5) 100%);
}

html[data-theme="dark"] .auth-card {
    background: #1f2937;
}

html[data-theme="dark"] .auth-card-shine {
    background:
        radial-gradient(420px circle at var(--auth-glare-x) var(--auth-glare-y),
            rgba(147, 197, 253, 0.18),
            transparent 42%);
    mix-blend-mode: screen;
}

html[data-theme="dark"] .auth-hero {
    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--merp-primary) 16%, var(--merp-surface)) 0%,
            color-mix(in srgb, var(--merp-primary) 6%, var(--merp-surface)) 55%,
            var(--merp-surface) 100%);
    border-bottom-color: color-mix(in srgb, var(--merp-border) 70%, var(--merp-primary) 15%);
}

html[data-theme="dark"] .auth-step-num {
    background: #1f2937;
    border-color: #374151;
}

html[data-theme="dark"] .auth-step--active .auth-step-num {
    background: var(--merp-primary);
    border-color: var(--merp-primary);
}

html[data-theme="dark"] .auth-step--active {
    background: transparent;
    color: var(--merp-accent);
}

html[data-theme="dark"] .auth-stage-glow {
    opacity: 0.5;
}

@keyframes mx-auth-mesh {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, 1.5%) scale(1.03); }
}
@keyframes mx-auth-kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-2.5%, 1.5%); }
}
@keyframes mx-auth-mark-drift {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.06; }
    100% { transform: translate(-48%, -52%) scale(1.08) rotate(4deg); opacity: 0.1; }
}
@keyframes mx-auth-grain {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-2%, 1%); }
}
@keyframes mx-auth-logo-ring {
    0%, 100% {
        box-shadow:
            0 0 0 6px color-mix(in srgb, var(--merp-primary, #4b59a7) 8%, transparent),
            0 12px 36px color-mix(in srgb, var(--merp-primary, #4b59a7) 22%, transparent);
    }
    50% {
        box-shadow:
            0 0 0 10px color-mix(in srgb, var(--merp-primary, #4b59a7) 4%, transparent),
            0 16px 48px color-mix(in srgb, var(--merp-primary, #4b59a7) 32%, transparent);
    }
}
@keyframes mx-auth-spin {
    to { transform: rotate(360deg); }
}
@keyframes mx-auth-spin-rev {
    to { transform: rotate(-360deg); }
}
@keyframes mx-auth-orb-a {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8%, 12%) scale(1.12); }
}
@keyframes mx-auth-orb-b {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10%, -8%) scale(1.08); }
}
@keyframes mx-auth-orb-c {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-14%, 10%) scale(1.18); }
}
@keyframes mx-auth-grid {
    0% { transform: translateY(0); }
    100% { transform: translateY(48px); }
}
@keyframes mx-auth-beam {
    0%, 100% { transform: translateX(-120px) rotate(12deg); opacity: 0.2; }
    50% { transform: translateX(80px) rotate(-8deg); opacity: 0.55; }
}
@keyframes mx-auth-glow-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.96); }
    50% { opacity: 0.8; transform: scale(1.04); }
}
@keyframes mx-auth-logo-glow {
    0%, 100% {
        box-shadow:
            0 4px 14px color-mix(in srgb, var(--merp-primary, #4b59a7) 14%, transparent),
            0 0 18px color-mix(in srgb, var(--merp-primary, #4b59a7) 16%, transparent);
    }
    50% {
        box-shadow:
            0 6px 18px color-mix(in srgb, var(--merp-primary, #4b59a7) 22%, transparent),
            0 0 32px color-mix(in srgb, var(--merp-primary, #4b59a7) 36%, transparent);
    }
}
@keyframes mx-auth-logo-glow-xl {
    0%, 100% {
        box-shadow:
            0 10px 28px color-mix(in srgb, var(--merp-primary, #4b59a7) 22%, transparent),
            0 0 36px color-mix(in srgb, var(--merp-primary, #4b59a7) 18%, transparent),
            inset 0 1px 0 rgba(255, 255, 255, 0.85);
    }
    50% {
        box-shadow:
            0 14px 36px color-mix(in srgb, var(--merp-primary, #4b59a7) 32%, transparent),
            0 0 56px color-mix(in srgb, var(--merp-primary, #4b59a7) 34%, transparent),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
}
@keyframes mx-auth-step-pulse {
    0%, 100% {
        box-shadow:
            0 2px 10px color-mix(in srgb, var(--merp-primary, #4b59a7) 38%, transparent),
            0 0 0 4px color-mix(in srgb, var(--merp-primary, #4b59a7) 14%, transparent);
    }
    50% {
        box-shadow:
            0 2px 14px color-mix(in srgb, var(--merp-primary, #4b59a7) 48%, transparent),
            0 0 0 7px color-mix(in srgb, var(--merp-primary, #4b59a7) 8%, transparent);
    }
}
@keyframes mx-auth-btn-shine {
    0%, 55% { left: -40%; }
    100% { left: 120%; }
}
@keyframes mx-auth-card-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes mx-fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card--login {
        transform: none !important;
    }

    .auth-stage-spin,
    .auth-wallpaper-ring,
    .auth-logo-halo,
    .auth-wallpaper-grain,
    .auth-wallpaper-scene,
    .auth-submit-btn.btn-primary::after {
        animation: none !important;
    }

    .auth-wallpaper-scene {
        transform: none !important;
    }
}

.auth-otp-code { letter-spacing: 0.35em; text-align: center; font-size: 1.25rem; }
.auth-otp-mask { text-align: center; margin: 0 0 0.75rem; font-size: 0.8125rem; }
.auth-resend { margin-top: 0.75rem; text-align: center; }
.auth-resend-wait { text-align: center; margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--color-primary, #0b5fff); }
.auth-pad { padding: 0 1.5rem 1rem; }
.auth-pad--end { padding-bottom: 1.5rem; }
.auth-alt { margin-top: 1rem; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.auth-sample { margin: 0 0 1rem 1.1rem; }

/* Giriş: Şifremi unuttum bağlantısı (2026-12-06) */
.auth-forgot-link { display: block; margin: -4px 0 12px; text-align: right; font-size: 13px; }
.auth-forgot-link a { color: var(--primary, #1d4ed8); text-decoration: none; }
.auth-forgot-link a:hover { text-decoration: underline; }
