*, *::before, *::after { box-shadow: none !important; }

/* Login Screen */
.adm-login-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 2fr 1fr;
    background: var(--bg);
}

/* ——— Sol: animasyonlu hero ——— */
.adm-login-hero {
    --px: 0;
    --py: 0;
    position: relative;
    overflow: hidden;
    background: #08080a;
    isolation: isolate;
}

.adm-login-hero-mesh {
    position: absolute;
    inset: -40%;
    background: #0c0c10;
    animation: admLoginMeshShift 18s ease-in-out infinite alternate;
    transform: translate(calc(var(--px) * 8px), calc(var(--py) * 6px));
    transition: transform 0.35s ease-out;
}

/* Aurora şeritleri */
.adm-login-hero-aurora {
    position: absolute;
    width: 140%;
    height: 55%;
    left: -20%;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: screen;
}

.adm-login-hero-aurora--1 {
    top: -8%;
    background: rgba(255, 255, 255, 0.08);
    animation: admLoginAurora1 12s ease-in-out infinite alternate;
}

.adm-login-hero-aurora--2 {
    bottom: -12%;
    background: rgba(160, 170, 200, 0.06);
    animation: admLoginAurora2 15s ease-in-out infinite alternate;
}

.adm-login-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.45;
    pointer-events: none;
}

.adm-login-hero-glow--a {
    width: min(42vw, 320px);
    height: min(42vw, 320px);
    top: 18%;
    left: 12%;
    background: rgba(255, 255, 255, 0.12);
    animation: admLoginGlowDriftA 14s ease-in-out infinite;
}

.adm-login-hero-glow--b {
    width: min(36vw, 280px);
    height: min(36vw, 280px);
    bottom: 10%;
    right: 8%;
    background: rgba(180, 180, 200, 0.08);
    animation: admLoginGlowDriftB 16s ease-in-out infinite;
}

.adm-login-hero-glow--c {
    width: min(28vw, 220px);
    height: min(28vw, 220px);
    top: 42%;
    left: 38%;
    background: rgba(255, 255, 255, 0.06);
    animation: admLoginGlowDriftC 11s ease-in-out infinite;
}

/* Perspektif grid */
.adm-login-hero-grid {
    display: none;
}

/* Dönen orbit halkaları */
.adm-login-hero-orbit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.adm-login-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.03);
}

.adm-login-orbit--1 {
    width: min(72vw, 520px);
    height: min(72vw, 520px);
    animation: admLoginOrbitSpin 28s linear infinite;
}

.adm-login-orbit--2 {
    width: min(52vw, 380px);
    height: min(52vw, 380px);
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.06);
    animation: admLoginOrbitSpin 20s linear infinite reverse;
}

.adm-login-orbit--3 {
    width: min(34vw, 260px);
    height: min(34vw, 260px);
    border-color: rgba(255, 255, 255, 0.12);
    animation: admLoginOrbitSpin 14s linear infinite;
}

.adm-login-orbit::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

.adm-login-hero-hexes {
    position: absolute;
    inset: 0;
    transform: translate(calc(var(--px) * -14px), calc(var(--py) * -10px));
    transition: transform 0.4s ease-out;
}

.adm-login-hero-hexes--back {
    z-index: 0;
    opacity: 0.55;
    filter: blur(1px);
}

.adm-login-hex {
    --hex-size: clamp(56px, 9vw, 120px);
    position: absolute;
    width: var(--hex-size);
    height: calc(var(--hex-size) * 0.866);
    left: calc(6% + (var(--hex-i) * 9.5%));
    top: calc(10% + (var(--hex-i) * 7.5%));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.25);
    animation: admLoginHexFloat calc(8s + var(--hex-i) * 0.4s) ease-in-out infinite;
    animation-delay: calc(var(--hex-i) * -1.15s);
    transform: rotate(calc(var(--hex-i) * 8deg)) scale(var(--hex-layer, 1));
}

.adm-login-hex--ghost {
    --hex-size: clamp(88px, 14vw, 180px);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    animation-duration: 14s;
}

.adm-login-hex.is-lg {
    --hex-size: clamp(96px, 15vw, 200px);
}

.adm-login-hex.is-lit {
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.35),
        0 0 36px rgba(255, 255, 255, 0.12),
        0 12px 40px rgba(0, 0, 0, 0.2);
    animation-name: admLoginHexFloat, admLoginHexPulse;
    animation-duration: 9s, 3.2s;
    animation-iteration-count: infinite, infinite;
    animation-timing-function: ease-in-out, ease-in-out;
}

.adm-login-hex:nth-child(1) { left: 4%; top: 6%; }
.adm-login-hex:nth-child(2) { left: 58%; top: 4%; }
.adm-login-hex:nth-child(3) { left: 74%; top: 32%; }
.adm-login-hex:nth-child(4) { left: 18%; top: 48%; }
.adm-login-hex:nth-child(5) { left: 46%; top: 58%; }
.adm-login-hex:nth-child(6) { left: 80%; top: 68%; }
.adm-login-hex:nth-child(7) { left: 2%; top: 74%; }
.adm-login-hex:nth-child(8) { left: 62%; top: 78%; }
.adm-login-hex:nth-child(9) { left: 32%; top: 18%; }
.adm-login-hex:nth-child(10) { left: 88%; top: 14%; }
.adm-login-hex:nth-child(11) { left: 38%; top: 82%; }
.adm-login-hex:nth-child(12) { left: 12%; top: 28%; }
.adm-login-hex:nth-child(13) { left: 52%; top: 28%; }
.adm-login-hex:nth-child(14) { left: 68%; top: 52%; }

.adm-login-hero-hexes--back .adm-login-hex:nth-child(1) { left: 10%; top: 20%; }
.adm-login-hero-hexes--back .adm-login-hex:nth-child(2) { left: 70%; top: 12%; }
.adm-login-hero-hexes--back .adm-login-hex:nth-child(3) { left: 85%; top: 55%; }
.adm-login-hero-hexes--back .adm-login-hex:nth-child(4) { left: 8%; top: 60%; }
.adm-login-hero-hexes--back .adm-login-hex:nth-child(5) { left: 42%; top: 8%; }
.adm-login-hero-hexes--back .adm-login-hex:nth-child(6) { left: 55%; top: 70%; }
.adm-login-hero-hexes--back .adm-login-hex:nth-child(7) { left: 25%; top: 85%; }
.adm-login-hero-hexes--back .adm-login-hex:nth-child(8) { left: 78%; top: 38%; }

/* Yüzen parçacıklar */
.adm-login-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.adm-login-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    left: calc(5% + (var(--p-i) * 4.2%));
    top: calc(8% + (var(--p-i) * 3.8%));
    opacity: 0;
    animation: admLoginParticle  calc(4s + (var(--p-i) % 5) * 0.8s) ease-in-out infinite;
    animation-delay: calc(var(--p-i) * -0.55s);
}

.adm-login-particle:nth-child(3n) {
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.45);
}

.adm-login-particle:nth-child(5n) {
    width: 4px;
    height: 4px;
    animation-duration: 6s;
}

.adm-login-hero-scan {
    display: none;
}

.adm-login-hero-vignette {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 2;
}

.adm-login-hero-brand {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 3;
    transform: translate(calc(var(--px) * 12px), calc(var(--py) * 10px));
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.adm-login-hero-mark-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adm-login-hero-mark-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: admLoginRingSpin 12s linear infinite;
}

.adm-login-hero-mark-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.adm-login-hero-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: admLoginMarkPulse 4s ease-in-out infinite;
}

.adm-login-hero-logo img {
    width: auto;
    height: clamp(44px, 7vw, 64px);
    max-width: min(260px, 82vw);
    object-fit: contain;
    filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.5));
}

.adm-login-hero-tagline {
    margin: 1.1rem 0 0;
    max-width: 280px;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.45);
    animation: admLoginTaglineFade 5s ease-in-out infinite;
}

@keyframes admLoginMeshShift {
    0% { transform: scale(1) rotate(0deg) translate(calc(var(--px) * 8px), calc(var(--py) * 6px)); }
    100% { transform: scale(1.08) rotate(4deg) translate(calc(var(--px) * 8px), calc(var(--py) * 6px)); }
}

@keyframes admLoginAurora1 {
    0% { transform: translateX(-6%) rotate(-2deg); opacity: 0.28; }
    100% { transform: translateX(8%) rotate(3deg); opacity: 0.42; }
}

@keyframes admLoginAurora2 {
    0% { transform: translateX(5%) rotate(2deg); opacity: 0.22; }
    100% { transform: translateX(-7%) rotate(-3deg); opacity: 0.38; }
}

@keyframes admLoginGlowDriftA {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(28px, 22px); }
}

@keyframes admLoginGlowDriftB {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-24px, -18px); }
}

@keyframes admLoginGlowDriftC {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
    50% { transform: translate(16px, -20px) scale(1.15); opacity: 0.55; }
}

@keyframes admLoginGridPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.55; }
}

@keyframes admLoginOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes admLoginHexFloat {
    0%, 100% {
        transform: translateY(0) rotate(calc(var(--hex-i) * 8deg)) scale(var(--hex-layer, 1));
    }
    50% {
        transform: translateY(-18px) rotate(calc(var(--hex-i) * 8deg + 8deg)) scale(var(--hex-layer, 1));
    }
}

@keyframes admLoginHexPulse {
    0%, 100% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.28),
            0 0 18px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, 0.55),
            0 0 40px rgba(255, 255, 255, 0.25);
    }
}

@keyframes admLoginParticle {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.6);
    }
    15% { opacity: 0.9; }
    50% {
        opacity: 0.5;
        transform: translateY(-42px) scale(1);
    }
    85% { opacity: 0.2; }
}

@keyframes admLoginScan {
    0% { background-position: 220% 0; }
    100% { background-position: -220% 0; }
}

@keyframes admLoginMarkPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 20px 56px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.35);
    }
}

@keyframes admLoginRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes admLoginTitleShine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes admLoginTaglineFade {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.65; }
}

@media (prefers-reduced-motion: reduce) {
    .adm-login-hero {
        --px: 0;
        --py: 0;
    }

    .adm-login-hero-mesh,
    .adm-login-hero-aurora,
    .adm-login-hero-glow,
    .adm-login-hero-grid,
    .adm-login-orbit,
    .adm-login-hex,
    .adm-login-particle,
    .adm-login-hero-scan,
    .adm-login-hero-logo,
    .adm-login-hero-mark-ring,
    .adm-login-hero-tagline,
    .adm-login-hero-brand,
    .adm-login-hero-hexes {
        animation: none;
        transition: none;
        transform: none;
    }

    .adm-login-hero-logo img {
        filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
    }
}

/* ——— Sağ: form ——— */
.adm-login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.adm-login-card {
    width: 100%;
    max-width: 440px;
    padding: 56px 48px;
    background: none;
    border: none;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    box-shadow: none;
    animation: loginFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.adm-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.adm-login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.adm-login-logo img {
    width: auto;
    height: 44px;
    max-width: min(220px, 72vw);
    object-fit: contain;
    display: block;
}

.adm-login-header h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    color: var(--text);
}

.adm-login-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.adm-login-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.adm-button.primary.full {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: var(--bg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.adm-button.primary.full:hover:not(:disabled) {
    background: var(--brand-hover);
    transform: scale(1.01);
}

.adm-button.primary.full:active:not(:disabled) {
    transform: scale(0.99);
}

.adm-alert.error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-line);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

.adm-login-rate-notice {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: var(--text-muted);
    background: color-mix(in srgb, var(--text-muted) 8%, var(--panel-2));
    border: 1px solid var(--line);
}

.adm-login-card .adm-field-label {
    font-weight: 500;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.adm-login-card input {
    background: var(--panel-2);
    border: 1px solid var(--line);
    padding: 12px 14px;
    font-size: 14px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.adm-login-card input:focus {
    border-color: var(--text);
    background: var(--bg);
}

[data-theme="dark"] .adm-login-card {
    border-color: var(--line);
}

.adm-login-footer {
    margin-top: 32px;
    text-align: center;
    animation: loginFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-login-footer p {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.adm-login-footer span {
    font-size: 11px;
    color: color-mix(in srgb, var(--text-muted) 60%, transparent);
}

@media (max-width: 900px) {
    .adm-login-screen {
        grid-template-columns: 1fr;
    }

    .adm-login-hero {
        display: none;
    }

    .adm-login-panel {
        padding: 20px;
    }

    .adm-login-card {
        padding: 40px 32px;
    }

    .adm-login-footer {
        margin-top: 24px;
    }
}
