/* ==========================================================================
   TENEBRIS STORE — AUTH DESIGN SYSTEM
   Giriş / Qeydiyyat / Doğrulama səhifələrinin vahid dizaynı.
   login.php, register.php (və eyni sinif adlarını istifadə edən digər
   auth səhifələri) buradan qidalanır — CSS bir yerdə saxlanır ki, iki
   səhifə arasında fərq yaranmasın.
   ========================================================================== */

:root {
    --au-bg:          #07070d;
    --au-bg-soft:     #0b0b14;
    --au-line:        rgba(255, 255, 255, .07);
    --au-line-strong: rgba(255, 255, 255, .13);

    --au-text:        #f4f4f6;
    --au-text-soft:   #a8a8b8;
    --au-text-dim:    #74748a;

    --au-violet:      #8b5cf6;
    --au-violet-lt:   #a78bfa;
    --au-fuchsia:     #d946ef;
    --au-cyan:        #22d3ee;
    --au-green:       #34d399;
    --au-red:         #fb7185;

    --au-radius:      20px;
    --au-radius-sm:   14px;
    --au-ease:        cubic-bezier(.16, 1, .3, 1);
}

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

html {
    background: var(--au-bg);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--au-bg);
    color: var(--au-text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(139, 92, 246, .35); color: #fff; }

/* Klaviatura ilə gəzənlər üçün görünən fokus (siçanla klikdə görünmür) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--au-violet-lt);
    outline-offset: 2px;
}

/* ==========================================================================
   1. SƏHİFƏ KARKASI
   ========================================================================== */

.login-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

/* ==========================================================================
   2. SOL PANEL — BREND VİTRİNİ
   ========================================================================== */

.login-branding {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 5.5vw;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 12% 8%,  rgba(139, 92, 246, .20) 0%, transparent 58%),
        radial-gradient(90%  70% at 88% 92%, rgba(217, 70, 239, .16) 0%, transparent 60%),
        radial-gradient(70%  60% at 96% 18%, rgba(34, 211, 238, .10) 0%, transparent 62%),
        linear-gradient(155deg, #0a0a14 0%, #10101e 48%, #08080f 100%);
    border-right: 1px solid var(--au-line);
}

/* Sağ kənarda incə işıq xətti — iki paneli ayırır */
.login-branding::after {
    content: '';
    position: absolute;
    top: 12%;
    bottom: 12%;
    right: -1px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(167, 139, 250, .55), transparent);
}

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

/* --- Perspektivli şəbəkə --- */
.cyber-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(139, 92, 246, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, .055) 1px, transparent 1px);
    background-size: 54px 54px;
    transform: perspective(560px) rotateX(62deg);
    mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 78%);
    animation: auGridScroll 22s linear infinite;
    will-change: transform;
}

@keyframes auGridScroll {
    0%   { transform: perspective(560px) rotateX(62deg) translateY(0); }
    100% { transform: perspective(560px) rotateX(62deg) translateY(54px); }
}

/* --- Aurora ləkələri --- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: .55;
    animation: auOrb 11s ease-in-out infinite;
    will-change: transform, opacity;
}

.orb-1 { width: 340px; height: 340px; top: 6%;  left: 4%;  background: radial-gradient(circle, rgba(139, 92, 246, .55), transparent 70%); }
.orb-2 { width: 300px; height: 300px; bottom: 8%; right: 2%; background: radial-gradient(circle, rgba(217, 70, 239, .42), transparent 70%); animation-delay: -4s; }
.orb-3 { width: 240px; height: 240px; top: 46%; left: 46%; background: radial-gradient(circle, rgba(34, 211, 238, .30), transparent 70%); animation-delay: -7s; }

@keyframes auOrb {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1);      opacity: .42; }
    50%      { transform: translate3d(0, -26px, 0) scale(1.16); opacity: .68; }
}

/* --- Yüksələn zərrəciklər --- */
.particles-container { position: absolute; inset: 0; }

.floating-particle {
    position: absolute;
    bottom: -12px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(196, 181, 253, .85);
    box-shadow: 0 0 12px 2px rgba(167, 139, 250, .55);
    animation: auRise linear infinite;
}

.floating-particle:nth-child(1) { left: 14%; animation-duration: 15s; animation-delay:  0s; }
.floating-particle:nth-child(2) { left: 32%; animation-duration: 19s; animation-delay: -4s; }
.floating-particle:nth-child(3) { left: 58%; animation-duration: 13s; animation-delay: -7s; }
.floating-particle:nth-child(4) { left: 74%; animation-duration: 21s; animation-delay: -2s; }
.floating-particle:nth-child(5) { left: 89%; animation-duration: 17s; animation-delay: -9s; }

@keyframes auRise {
    0%   { transform: translateY(0) scale(.6);      opacity: 0; }
    12%  { opacity: .9; }
    88%  { opacity: .9; }
    100% { transform: translateY(-104vh) scale(1.1); opacity: 0; }
}

/* --- Məzmun --- */
.branding-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    animation: auFadeUp .8s var(--au-ease) both;
}

@keyframes auFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.logo-container {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

/* Fırlanan konik halqa */
.logo-glow-ring {
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: conic-gradient(from 0deg,
        var(--au-violet), var(--au-fuchsia), var(--au-cyan), var(--au-violet));
    animation: auSpin 6s linear infinite;
    filter: blur(1px);
    opacity: .9;
}

/* Halqanın içi kəsilir → yalnız kənar zolaq qalır */
.logo-glow-ring::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 20px;
    background: #0b0b14;
}

@keyframes auSpin { to { transform: rotate(360deg); } }

.logo-inner-glow {
    position: absolute;
    inset: 6px;
    border-radius: 18px;
    background: radial-gradient(circle at 30% 20%, rgba(167, 139, 250, .35), transparent 70%);
}

.logo-image {
    position: relative;
    z-index: 2;
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 12px;
}

.brand-name {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1.1;
    background: linear-gradient(100deg, #fff 12%, #c4b5fd 52%, #f0abfc 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-size: 16px;
    line-height: 1.65;
    color: var(--au-text-soft);
    margin-bottom: 38px;
    max-width: 420px;
}

/* --- Üstünlük kartları --- */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 18px;
    border-radius: var(--au-radius-sm);
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--au-line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .35s var(--au-ease), background-color .3s ease,
                border-color .3s ease;
    animation: auFadeUp .7s var(--au-ease) both;
}

.feature-item:nth-child(1) { animation-delay: .10s; }
.feature-item:nth-child(2) { animation-delay: .18s; }
.feature-item:nth-child(3) { animation-delay: .26s; }

.feature-item:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, .06);
    border-color: rgba(167, 139, 250, .32);
}

.feature-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 16px;
    color: #ddd6fe;
    background: linear-gradient(140deg, rgba(139, 92, 246, .28), rgba(217, 70, 239, .16));
    border: 1px solid rgba(167, 139, 250, .26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.feature-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.2px;
}

.feature-desc {
    font-size: 12.5px;
    color: var(--au-text-dim);
    margin-top: 2px;
}

/* ==========================================================================
   3. SAĞ PANEL — FORMA
   ========================================================================== */

.login-form-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 56px 6% 64px;
    background: var(--au-bg);
}

/* Formanın arxasındakı yumşaq işıq */
.login-form-section::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 50%;
    width: 620px;
    height: 620px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, .13), transparent 65%);
    pointer-events: none;
}

.mobile-bg-effects { display: none; }

/* Mobil brend başlığı — masaüstündə gizlidir */
.mobile-branding { display: none; }

/* --- Forma başlığı --- */
.form-header {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    margin-bottom: 22px;
    animation: auFadeUp .7s var(--au-ease) both;
}

.form-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.7px;
    color: #fff;
}

.form-title i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    font-size: 16px;
    border-radius: 12px;
    color: #ddd6fe;
    background: linear-gradient(140deg, rgba(139, 92, 246, .3), rgba(217, 70, 239, .18));
    border: 1px solid rgba(167, 139, 250, .3);
}

.form-subtitle {
    font-size: 14px;
    color: var(--au-text-dim);
    margin-top: 9px;
}

/* --- Kart --- */
.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    padding: 30px 30px 26px;
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(23, 23, 36, .92), rgba(13, 13, 22, .94));
    border: 1px solid var(--au-line-strong);
    box-shadow:
        0 30px 70px -30px rgba(0, 0, 0, .9),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    animation: auFadeUp .75s var(--au-ease) .08s both;
}

/* Üst kənarda işıq zolağı */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14%;
    right: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .8), transparent);
}

/* --- Bildirişlər --- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 16px;
    margin-bottom: 18px;
    border-radius: var(--au-radius-sm);
    font-size: 13.5px;
    line-height: 1.5;
    animation: auShakeIn .45s var(--au-ease) both;
}

.alert i { font-size: 15px; margin-top: 1px; flex-shrink: 0; }

.alert-danger {
    color: #fecdd3;
    background: rgba(251, 113, 133, .1);
    border: 1px solid rgba(251, 113, 133, .3);
}

.alert-danger i { color: var(--au-red); }

.alert-success {
    color: #d1fae5;
    background: rgba(52, 211, 153, .1);
    border: 1px solid rgba(52, 211, 153, .3);
}

.alert-success i { color: var(--au-green); }

.alert-info {
    color: #dbeafe;
    background: rgba(96, 165, 250, .1);
    border: 1px solid rgba(96, 165, 250, .3);
}

.alert-info i { color: #60a5fa; }

@keyframes auShakeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}

/* --- Sahələr --- */
.form-group { margin-bottom: 17px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .2px;
    color: var(--au-text-soft);
}

.form-label a {
    font-size: 12px;
    font-weight: 600;
    color: var(--au-violet-lt);
    text-decoration: none;
    transition: color .2s ease;
}

.form-label a:hover { color: #e9d5ff; text-decoration: underline; }

.form-label .required { color: var(--au-fuchsia); }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 14px;
    color: var(--au-text-dim);
    pointer-events: none;
    transition: color .25s ease;
    z-index: 2;
}

.form-input {
    width: 100%;
    height: 52px;
    /* Sağdakı 46px şifrə göz düyməsi üçün ehtiyatdır — bütün sahələrdə
       eyni saxlanılır ki, :has() dəstəyi olmayan brauzerlərdə də mətn
       düymənin altına girməsin */
    padding: 0 46px 0 44px;
    border-radius: var(--au-radius-sm);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--au-line-strong);
    color: var(--au-text);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    transition: border-color .25s ease, background-color .25s ease,
                box-shadow .25s ease;
}

.form-input::placeholder { color: #5b5b70; font-weight: 400; }

.form-input:hover { border-color: rgba(255, 255, 255, .2); }

.form-input:focus {
    outline: none;
    background: rgba(139, 92, 246, .07);
    border-color: rgba(167, 139, 250, .65);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .14);
}

.input-wrapper:focus-within .input-icon { color: var(--au-violet-lt); }

/* Brauzerin avtomatik doldurma fonu (ağ olurdu) neytrallaşdırılır */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--au-text);
    -webkit-box-shadow: 0 0 0 1000px #15151f inset;
    caret-color: var(--au-text);
}

.password-toggle {
    position: absolute;
    right: 6px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--au-text-dim);
    font-size: 14px;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #e9d5ff;
    background: rgba(139, 92, 246, .14);
}

/* --- Əsas düymə --- */
.submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    margin-top: 6px;
    border: none;
    border-radius: var(--au-radius-sm);
    background: linear-gradient(100deg, #7c3aed 0%, #8b5cf6 42%, #c026d3 100%);
    color: #fff;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1px;
    cursor: pointer;
    overflow: hidden;
    box-shadow:
        0 14px 34px -14px rgba(139, 92, 246, .9),
        inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .28s var(--au-ease), box-shadow .28s var(--au-ease),
                filter .25s ease;
}

/* Üzərinə gələndə soldan sağa işıq süzülür */
.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: skewX(-18deg);
    transition: left .7s var(--au-ease);
}

.submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow:
        0 20px 44px -14px rgba(168, 85, 247, 1),
        inset 0 1px 0 rgba(255, 255, 255, .28);
}

.submit-btn:hover::after { left: 115%; }

.submit-btn:active { transform: translateY(0) scale(.995); }

.submit-btn:disabled {
    cursor: not-allowed;
    filter: grayscale(.55) brightness(.75);
    box-shadow: none;
    transform: none;
}

.submit-btn i { font-size: 15px; }

/* --- Ayırıcı --- */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0 18px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--au-text-dim);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--au-line-strong), transparent);
}

/* --- Sosial giriş --- */
.social-buttons {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 11px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    padding: 0 16px;
    border-radius: var(--au-radius-sm);
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--au-line-strong);
    color: #e4e4ec;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .25s var(--au-ease), background-color .25s ease,
                border-color .25s ease;
}

.social-btn svg { width: 19px; height: 19px; flex-shrink: 0; }

.social-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
}

.google-btn:hover   { border-color: rgba(66, 133, 244, .55);  box-shadow: 0 10px 26px -14px rgba(66, 133, 244, .9); }
.facebook-btn       { color: #dbeafe; }
.facebook-btn svg   { color: #1877f2; }
.facebook-btn:hover { border-color: rgba(24, 119, 242, .55); box-shadow: 0 10px 26px -14px rgba(24, 119, 242, .9); }

/* --- Kart altı keçidlər --- */
.form-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--au-line);
    text-align: center;
}

.form-footer p {
    font-size: 13.5px;
    color: var(--au-text-dim);
}

.form-footer p + p { margin-top: 9px; }

.form-footer a {
    color: var(--au-violet-lt);
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.form-footer a:hover { color: #f0abfc; }

/* Kartın kənarında dayanan footer (register.php-də belədir) */
.login-form-section > .form-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    border-top: none;
    padding-top: 0;
    margin-top: 20px;
}

/* ==========================================================================
   4. QEYDİYYAT ADDIMLARI VƏ OTP
   ========================================================================== */

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}

.step-dot {
    width: 26px;
    height: 4px;
    border-radius: 100px;
    background: rgba(255, 255, 255, .12);
    transition: width .4s var(--au-ease), background-color .3s ease;
}

.step-dot.active {
    width: 46px;
    background: linear-gradient(90deg, var(--au-violet), var(--au-fuchsia));
    box-shadow: 0 0 14px rgba(139, 92, 246, .7);
}

.step-dot.completed { background: rgba(52, 211, 153, .75); }

/* --- OTP xanaları --- */
.otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 9px;
    margin: 4px 0 20px;
}

.otp-inputs input {
    width: 100%;
    height: 58px;
    border-radius: var(--au-radius-sm);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--au-line-strong);
    color: #fff;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 23px;
    font-weight: 700;
    text-align: center;
    caret-color: var(--au-violet-lt);
    transition: border-color .2s ease, background-color .2s ease,
                box-shadow .2s ease, transform .2s var(--au-ease);
}

.otp-inputs input:focus {
    outline: none;
    background: rgba(139, 92, 246, .1);
    border-color: rgba(167, 139, 250, .7);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .15);
    transform: translateY(-2px);
}

.otp-inputs input.filled {
    background: rgba(139, 92, 246, .14);
    border-color: rgba(167, 139, 250, .5);
}

.resend-link {
    margin-top: 16px;
    text-align: center;
}

.resend-link button {
    border: none;
    background: none;
    padding: 0;
    color: var(--au-violet-lt);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease;
}

.resend-link button:hover { color: #f0abfc; text-decoration: underline; }

/* --- Uğur nişanı --- */
.success-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 30px;
    color: #fff;
    background: linear-gradient(140deg, #34d399, #059669);
    box-shadow: 0 0 0 8px rgba(52, 211, 153, .12),
                0 16px 40px -14px rgba(16, 185, 129, .9);
    animation: auPop .6s var(--au-ease) both;
}

@keyframes auPop {
    0%   { opacity: 0; transform: scale(.5); }
    60%  { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   5. ADAPTİV
   ========================================================================== */

@media (max-width: 1100px) {
    .login-wrapper { grid-template-columns: 1fr 1fr; }
    .login-branding { padding: 56px 42px; }
    .brand-tagline { font-size: 15px; margin-bottom: 30px; }
}

/* Sol panel gizlənir, forma tam ekranı tutur */
@media (max-width: 900px) {
    .login-wrapper { grid-template-columns: 1fr; }

    .login-branding { display: none; }

    .login-form-section {
        min-height: 100vh;
        padding: 40px 20px 56px;
        overflow: hidden;
        background:
            radial-gradient(100% 60% at 50% 0%, rgba(139, 92, 246, .18) 0%, transparent 60%),
            var(--au-bg);
    }

    .login-form-section::before { display: none; }

    /* Mobil fon effektləri */
    .mobile-bg-effects {
        display: block;
        position: absolute;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .mobile-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(64px);
        animation: auOrb 12s ease-in-out infinite;
    }

    .mobile-orb-1 {
        width: 260px; height: 260px; top: -60px; left: -70px;
        background: radial-gradient(circle, rgba(139, 92, 246, .5), transparent 70%);
    }

    .mobile-orb-2 {
        width: 230px; height: 230px; bottom: -50px; right: -60px;
        background: radial-gradient(circle, rgba(217, 70, 239, .38), transparent 70%);
        animation-delay: -5s;
    }

    /* Mobil brend başlığı */
    .mobile-branding {
        display: block;
        position: relative;
        z-index: 2;
        text-align: center;
        margin-bottom: 26px;
        animation: auFadeUp .7s var(--au-ease) both;
    }

    .mobile-logo-container {
        position: relative;
        width: 76px;
        height: 76px;
        margin: 0 auto 14px;
        display: grid;
        place-items: center;
    }

    .mobile-logo-glow {
        position: absolute;
        inset: -4px;
        border-radius: 24px;
        background: conic-gradient(from 0deg,
            var(--au-violet), var(--au-fuchsia), var(--au-cyan), var(--au-violet));
        animation: auSpin 6s linear infinite;
        opacity: .9;
    }

    .mobile-logo-glow::after {
        content: '';
        position: absolute;
        inset: 2px;
        border-radius: 22px;
        background: #0a0a12;
    }

    .mobile-logo-pulse {
        position: absolute;
        inset: -14px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 68%);
        animation: auPulse 3s ease-in-out infinite;
    }

    @keyframes auPulse {
        0%, 100% { transform: scale(.9); opacity: .5; }
        50%      { transform: scale(1.12); opacity: .85; }
    }

    .mobile-logo-image {
        position: relative;
        z-index: 2;
        width: 52px;
        height: 52px;
        object-fit: contain;
        border-radius: 14px;
    }

    .mobile-brand-name {
        font-family: 'Sora', 'Inter', sans-serif;
        font-size: 24px;
        font-weight: 800;
        letter-spacing: -.6px;
        background: linear-gradient(100deg, #fff, #c4b5fd 55%, #f0abfc);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .mobile-tagline {
        font-size: 13px;
        color: var(--au-text-dim);
        margin-top: 7px;
    }

    /* Mobil başlıq varsa forma başlığı ortalanır */
    .form-header { text-align: center; margin-bottom: 18px; }
    .form-title { justify-content: center; font-size: 23px; }
    .form-title i { width: 36px; height: 36px; font-size: 15px; }
    .form-subtitle { font-size: 13px; }
}

@media (max-width: 560px) {
    .login-form-section { padding: 32px 15px 48px; }

    .login-card {
        padding: 24px 20px 22px;
        border-radius: 22px;
    }

    .form-row { grid-template-columns: 1fr; gap: 0; }

    .form-input { height: 50px; font-size: 14px; }

    .submit-btn { height: 52px; font-size: 14.5px; }

    .social-buttons { grid-auto-flow: row; }

    .otp-inputs { gap: 6px; }
    .otp-inputs input { height: 52px; font-size: 20px; }

    .form-title { font-size: 21px; }
    .mobile-brand-name { font-size: 22px; }
}

/* iOS-da 16px-dən kiçik sahələr avtomatik yaxınlaşdırılır — bunun
   qarşısını almaq üçün toxunma cihazlarında ölçü 16px saxlanılır */
@media (hover: none) and (pointer: coarse) {
    .form-input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001s !important;
    }
}
