/* ============================================================
   ZBus — Giriş ekranı (auth) tasarımı
   ============================================================ */

@keyframes authAurora {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(8%, -6%, 0) scale(1.12); }
    100% { transform: translate3d(-6%, 8%, 0) scale(.94); }
}
@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes authFadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes authCardIn {
    from { opacity: 0; transform: translateY(28px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes authFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}
@keyframes authShimmer {
    0%   { transform: translateX(-140%) skewX(-20deg); }
    45%, 100% { transform: translateX(260%) skewX(-20deg); }
}
@keyframes authRoad {
    from { background-position: 0 0; }
    to   { background-position: -64px 0; }
}
@keyframes authDrive {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
@keyframes authShake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* ---------- Zemin ---------- */
html, body.auth-body {
    height: 100%;
}
body.auth-body {
    margin: 0;
    background: #070b18 !important;
    color: #d7dcec;
    overflow-x: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(1100px 650px at 85% -10%, rgba(0, 110, 200, .14), transparent 60%),
        radial-gradient(900px 600px at -10% 100%, rgba(20, 50, 120, .28), transparent 60%),
        linear-gradient(160deg, #0b1330 0%, #080d1f 55%, #05081a 100%);
}
.auth-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'><g fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1.3'><path d='M-30 90 C 70 30, 150 170, 250 120 S 400 40, 450 90'/><path d='M-30 300 C 70 340, 170 250, 240 310 S 380 380, 450 300'/><path d='M110 450 C 130 340, 230 340, 270 250 S 330 100, 320 -30'/></g><g fill='%23ffffff' fill-opacity='.11'><circle cx='250' cy='120' r='2.6'/><circle cx='240' cy='310' r='2.6'/><circle cx='270' cy='250' r='2.6'/><circle cx='96' cy='60' r='2.2'/><circle cx='150' cy='170' r='2.2'/><circle cx='330' cy='340' r='2.2'/></g></svg>");
    background-size: 420px 420px;
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 35%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, #000 35%, transparent 100%);
    pointer-events: none;
}
.auth-aurora {
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    mix-blend-mode: screen;
    animation: authAurora 22s ease-in-out infinite alternate;
    will-change: transform;
}
.auth-aurora-1 { top: -180px; left: -120px; background: #0b57b8; opacity: .42; }
.auth-aurora-2 { bottom: -240px; left: 28%; background: #12306e; animation-duration: 28s; animation-delay: -8s; opacity: .55; }
.auth-aurora-3 { top: 12%; right: -220px; background: #0a3f8f; animation-duration: 26s; animation-delay: -14s; opacity: .3; }

/* ---------- Yerleşim ---------- */
.auth-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    overflow: hidden;
}
.auth-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 64px 200px;
    overflow: hidden;
}
.auth-brand {
    position: absolute;
    top: 56px;
    left: 64px;
    animation: authFadeDown .8s cubic-bezier(.22, 1, .36, 1) both;
}
.auth-brand img {
    height: 44px;
}
.auth-side-content {
    max-width: 520px;
}
.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7d8bb0;
    margin-bottom: 22px;
    animation: authFadeUp .7s .1s cubic-bezier(.22, 1, .36, 1) both;
}
.auth-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: #3b8fe0;
}
.auth-title {
    margin: 0 0 18px;
    font-size: clamp(40px, 4.6vw, 62px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.03em;
    color: #ffffff;
    animation: authFadeUp .8s .2s cubic-bezier(.22, 1, .36, 1) both;
}
.auth-title-grad {
    background: linear-gradient(90deg, #7cc4ff, #2d8fe6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.auth-lead {
    margin: 0 0 34px;
    font-size: 17px;
    line-height: 1.6;
    color: #b8c1d9;
    max-width: 440px;
    animation: authFadeUp .8s .3s cubic-bezier(.22, 1, .36, 1) both;
}
.auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #d7dcec;
    font-size: 15px;
    font-weight: 500;
    animation: authFadeUp .7s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(.4s + var(--i) * .12s);
}
.auth-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #7cc4ff;
    flex-shrink: 0;
}
.auth-feature-icon svg {
    width: 18px;
    height: 18px;
}

/* Yol + otobüs */
.auth-road {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 44px;
    height: 60px;
    pointer-events: none;
    z-index: 0;
}
.auth-road::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, .08);
}
.auth-road::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 28px, transparent 28px 64px);
    animation: authRoad .9s linear 4;
}
.auth-bus {
    position: absolute;
    bottom: 4px;
    right: 0;
    width: min(420px, 62%);
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45));
    animation: authDrive 3.4s cubic-bezier(.16, 1, .3, 1) .4s both;
}
.auth-bus img {
    display: block;
    width: 100%;
    height: auto;
}

.auth-main {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 200px;
}
.auth-footer {
    margin-top: 28px;
    font-size: 12px;
    color: #55608a;
    animation: authFadeUp .8s .6s cubic-bezier(.22, 1, .36, 1) both;
}

/* ---------- Kart ---------- */
.auth-card {
    position: relative;
    width: 100%;
    max-width: 470px;
    border-radius: 26px;
    padding: 1px;
    animation: authCardIn .9s .15s cubic-bezier(.22, 1, .36, 1) both;
}
.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(120, 170, 255, .45), rgba(255, 255, 255, .05) 40%, rgba(255, 255, 255, .03));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.auth-card-body {
    position: relative;
    border-radius: 25px;
    padding: 44px 42px 40px;
    background: rgba(10, 16, 38, .78);
    border: 1px solid rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.auth-card-head {
    text-align: center;
    margin-bottom: 30px;
}
.auth-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #1e3a6e, #0d1b3a);
    color: #ffffff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 16px 34px -14px rgba(11, 79, 179, .8), inset 0 1px 0 rgba(255, 255, 255, .15);
    animation: authFloat 4.5s ease-in-out infinite;
}
.auth-card-head h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #ffffff;
}
.auth-card-head p {
    margin: 0;
    font-size: 14px;
    color: #7d8bb0;
}
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(241, 65, 108, .12);
    border: 1px solid rgba(241, 65, 108, .4);
    color: #ff8fa8;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    animation: authShake .6s cubic-bezier(.36, .07, .19, .97) both;
}
.auth-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Alanlar */
.auth-field {
    margin-bottom: 18px;
    animation: authFadeUp .7s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(.35s + var(--i, 0) * .1s);
}
.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7d8bb0;
}
.auth-input {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: border-color .2s, box-shadow .25s, background-color .2s;
}
.auth-input > svg {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #7d8bb0;
    pointer-events: none;
    transition: color .2s, transform .2s;
}
.auth-input .form-control {
    height: 52px;
    padding: 0 48px 0 48px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 500;
}
.auth-input .form-control::placeholder {
    color: #55608a;
}
.auth-input:focus-within {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(61, 140, 230, .75);
    box-shadow: 0 0 0 4px rgba(61, 140, 230, .16), 0 10px 30px -18px rgba(61, 140, 230, .8);
}
.auth-input:focus-within > svg {
    color: #7cc4ff;
    transform: scale(1.08);
}
.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #131b3a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    border-radius: 14px;
}
.auth-eye {
    position: absolute;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #7d8bb0;
    cursor: pointer;
    transition: color .2s, background-color .2s;
}
.auth-eye:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, .08);
}
.auth-eye svg {
    width: 18px;
    height: 18px;
}
.auth-eye .auth-eye-off {
    display: none;
}
.auth-eye.is-visible .auth-eye-on {
    display: none;
}
.auth-eye.is-visible .auth-eye-off {
    display: block;
}
.auth-field .fv-plugins-message-container {
    margin-top: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #ff8fa8;
    animation: authFadeUp .3s ease both;
}
.auth-input.fv-plugins-bootstrap5-row-invalid,
.auth-field.fv-plugins-bootstrap5-row-invalid .auth-input {
    border-color: rgba(241, 65, 108, .6);
}

/* Buton */
.auth-submit {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    margin-top: 10px;
    border: 0 !important;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a7fe0 0%, #0b4fb3 100%) !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 16px 34px -14px rgba(11, 79, 179, .9);
    transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, filter .2s;
    animation: authFadeUp .7s .6s cubic-bezier(.22, 1, .36, 1) both;
}
.auth-submit::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 36%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: translateX(-140%) skewX(-20deg);
    pointer-events: none;
}
.auth-submit:hover::after {
    animation: authShimmer 1s ease-in-out;
}
.auth-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 22px 40px -16px rgba(11, 79, 179, 1);
}
.auth-submit:active {
    transform: translateY(0) scale(.99);
}
.auth-submit .indicator-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.auth-submit .indicator-label svg {
    width: 18px;
    height: 18px;
    transition: transform .2s;
}
.auth-submit:hover .indicator-label svg {
    transform: translateX(4px);
}
.auth-submit[data-kt-indicator="on"] {
    filter: saturate(.8);
}

/* Diğer auth sayfaları (şifre sıfırlama, 2FA...) aynı cam görünümü alır */
.auth-main .card {
    background: rgba(10, 16, 38, .78) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 25px !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
    animation: authCardIn .9s .15s cubic-bezier(.22, 1, .36, 1) both;
}
.auth-main .card .text-dark {
    color: #ffffff !important;
}

/* ---------- Duyarlılık ---------- */
@media (max-width: 991.98px) {
    .auth-wrap {
        grid-template-columns: minmax(0, 1fr);
    }
    .auth-side {
        padding: 110px 28px 150px;
        justify-content: flex-start;
    }
    .auth-brand {
        top: 36px;
        left: 28px;
    }
    .auth-title {
        font-size: clamp(32px, 9vw, 44px);
    }
    .auth-lead {
        margin-bottom: 20px;
    }
    .auth-features {
        display: none;
    }
    .auth-road {
        bottom: 24px;
    }
    .auth-bus {
        width: min(340px, 78%);
    }
    .auth-main {
        padding-bottom: 170px;
    }
    .auth-card-body {
        padding: 34px 26px 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-aurora,
    .auth-brand,
    .auth-eyebrow,
    .auth-title,
    .auth-lead,
    .auth-features li,
    .auth-road::after,
    .auth-bus,
    .auth-footer,
    .auth-card,
    .auth-logo-badge,
    .auth-field,
    .auth-submit,
    .auth-submit::after,
    .auth-main .card {
        animation: none !important;
    }
}
