/* =====================================================================
   MODERN ENTERPRISE — Linear / Stripe / Notion estetigi
   Pure dark scene, single accent (electric violet), large typography,
   deliberate motion, less is more. NO rainbow chaos.
   ===================================================================== */

body {
    background: #0a0a0f !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Eski chaotic background katmanlarini sustur */
.login-bg .login-conic,
.login-bg::before,
.login-bg::after,
.login-shapes,
.login-shapes .shape {
    display: none !important;
}

/* Single deliberate hero spotlight + grid */
.login-bg {
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(124, 58, 237, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(59, 7, 100, 0.45) 0%, transparent 55%),
        linear-gradient(180deg, #0a0a0f 0%, #050510 50%, #0a0a0f 100%) !important;
    background-size: 100% 100% !important;
    animation: none !important;
    filter: none !important;
}

.login-bg::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    background:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px) !important;
    background-size: 60px 60px !important;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%) !important;
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%) !important;
    pointer-events: none !important;
    opacity: 0.8 !important;
    z-index: 1 !important;
}

/* Tek buyuk yumusak violet spotlight kartin arkasinda */
.login-container::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle,
        rgba(139, 92, 246, 0.45) 0%,
        rgba(99, 102, 241, 0.25) 25%,
        rgba(124, 58, 237, 0.10) 50%,
        transparent 75%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
    animation: heroSpotPulse 8s ease-in-out infinite;
}

@keyframes heroSpotPulse {
    0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.05); }
}

.login-container::after { display: none !important; }

.login-container {
    isolation: isolate;
    max-width: 460px !important;
}

/* GLASS KART — koyu, premium, single ince violet border */
.login-card {
    background:
        linear-gradient(180deg, rgba(20, 20, 30, 0.85) 0%, rgba(15, 15, 25, 0.85) 100%) !important;
    backdrop-filter: blur(32px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(32px) saturate(1.2) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 24px !important;
    padding: 56px 44px 40px !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 20px 60px -12px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(139, 92, 246, 0.15) !important;
    animation: none !important;
    color: #f4f4f7;
    position: relative !important;
    overflow: hidden !important;
}

.login-card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.8) 50%, transparent 100%) !important;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.5) !important;
    animation: none !important;
}

.login-card::after { display: none !important; }

/* LOGO — buyuk, tek dramatic violet ring */
.login-logo {
    position: relative !important;
    margin-bottom: 28px !important;
    text-align: center;
}

.login-logo::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(139, 92, 246, 0.5) 90deg,
        rgba(99, 102, 241, 0.7) 180deg,
        rgba(139, 92, 246, 0.5) 270deg,
        transparent 360deg
    );
    filter: blur(18px);
    z-index: 0;
    animation: logoRingRotate 6s linear infinite;
    opacity: 0.9;
    pointer-events: none;
}

.login-logo::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 130px; height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.4),
        0 0 30px rgba(139, 92, 246, 0.4),
        0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

@keyframes logoRingRotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

.login-logo-icon { position: relative; z-index: 2; }

.login-logo-icon img {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
    animation: none !important;
}

/* MASSIVE BOLD TITLE — beyaz uzerinde tek subtil violet vurgu */
.stage-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
    margin: 24px 0 8px !important;
    background: linear-gradient(180deg, #ffffff 0%, #d4d4dc 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-align: center;
    filter: none !important;
    animation: none !important;
    line-height: 1.2;
}

.stage-title::after {
    width: 40px !important;
    height: 2px !important;
    margin: 12px auto 0 !important;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent) !important;
    border-radius: 2px !important;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.8) !important;
    animation: none !important;
}

/* Personnel name (PIN ekraninda) — sade */
.user-name, .personel-name, [class*="name-display"] {
    color: #a1a1aa !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-weight: 600 !important;
}

/* INPUT — dark glass, single accent border, focus glow */
.login-input,
input[type="text"]:not([class*="modal"]),
input[type="password"]:not([class*="modal"]),
input[type="tel"]:not([class*="modal"]) {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    padding: 16px 18px 16px 50px !important;
    border-radius: 12px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: blur(8px);
}

.login-input::placeholder,
input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.login-input:focus,
input:focus:not([class*="modal"]) {
    border-color: rgba(139, 92, 246, 0.6) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow:
        0 0 0 4px rgba(139, 92, 246, 0.12),
        0 0 24px rgba(139, 92, 246, 0.2) !important;
    transform: none !important;
}

.input-icon, .login-input-group i {
    color: rgba(139, 92, 246, 0.7) !important;
}

/* PRIMARY BUTTON — single violet gradient, premium */
.login-btn,
.btn-primary {
    background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%) !important;
    background-size: 100% 100% !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    padding: 16px !important;
    border-radius: 12px !important;
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.3),
        0 4px 12px rgba(139, 92, 246, 0.35),
        0 0 30px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    animation: none !important;
}

.login-btn:hover,
.btn-primary:hover {
    background: linear-gradient(180deg, #9d6dff 0%, #7c3aed 100%) !important;
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.5),
        0 8px 20px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.login-btn:active,
.btn-primary:active { transform: translateY(0); }

/* Secondary buttons (Guvenli Giris vb) */
[class*="secondary-btn"],
.alt-btn,
.btn-secondary,
button.alt-mode-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #d4d4dc !important;
    transition: all 0.2s !important;
}

[class*="secondary-btn"]:hover,
.alt-btn:hover,
.btn-secondary:hover,
button.alt-mode-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    color: #ffffff !important;
}

/* Footer */
.login-card .footer-text,
.login-card [class*="copyright"],
.login-card .anka-link {
    color: rgba(255, 255, 255, 0.4) !important;
}

.login-card .anka-link {
    color: #a78bfa !important;
    text-decoration: none;
    font-weight: 600;
}

.login-card .anka-link:hover { color: #c4b5fd !important; }

/* ===== PIN EKRANI ===== */

.pin-display {
    background: rgba(255, 255, 255, 0.04) !important;
    padding: 18px 24px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.1) !important;
    gap: 14px !important;
}

.pin-dot {
    width: 14px !important;
    height: 14px !important;
    border: 2px solid rgba(255, 255, 255, 0.18) !important;
    background: transparent !important;
}

.pin-dot.filled {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6) !important;
    border-color: #a78bfa !important;
    box-shadow:
        0 0 12px rgba(139, 92, 246, 0.7),
        0 0 24px rgba(139, 92, 246, 0.4) !important;
    transform: scale(1.15) !important;
}

.pin-pad {
    background: rgba(255, 255, 255, 0.025) !important;
    padding: 16px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.pin-key,
.pin-button,
[class*="pin-btn"] {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.3),
        0 8px 18px -4px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.12s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pin-key:hover,
.pin-button:hover {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.1)) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 rgba(0, 0, 0, 0.3),
        0 12px 24px -4px rgba(139, 92, 246, 0.5),
        0 0 24px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.pin-key:active,
.pin-button:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.3),
        0 4px 8px -2px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
}

/* ===== PATTERN (DESEN) EKRANI ===== */

.pattern-wrap { color: #f4f4f7; }
.pattern-title { color: #f4f4f7 !important; }
.pattern-counter { color: #a1a1aa !important; }
.pattern-counter.warn { color: #fbbf24 !important; }
.pattern-counter.ok { color: #34d399 !important; }

.pattern-grid {
    background:
        radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.15), transparent 60%),
        radial-gradient(circle at 80% 90%, rgba(99, 102, 241, 0.12), transparent 60%),
        linear-gradient(135deg, rgba(20,20,30,0.6) 0%, rgba(15,15,25,0.6) 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    box-shadow:
        0 10px 30px -8px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.pattern-dot::before {
    background: radial-gradient(circle at 35% 30%, #6b7280, #374151) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.pattern-dot.active::before {
    background: radial-gradient(circle at 35% 30%, #c4b5fd, #8b5cf6 60%, #6d28d9) !important;
    box-shadow:
        0 0 0 6px rgba(139, 92, 246, 0.2),
        0 0 20px rgba(139, 92, 246, 0.7),
        0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

/* ===== RESIM SECME EKRANI ===== */

.image-grid { gap: 14px !important; }

.image-choice {
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.025) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.image-choice::before {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, transparent 50%, rgba(99, 102, 241, 0.15) 100%) !important;
}

.image-choice:hover {
    border-color: rgba(139, 92, 246, 0.5) !important;
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 30px -4px rgba(139, 92, 246, 0.4),
        0 0 30px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.image-choice.selected {
    border-color: #10b981 !important;
    box-shadow:
        0 0 0 4px rgba(16, 185, 129, 0.2),
        0 12px 30px -4px rgba(16, 185, 129, 0.5),
        0 0 30px rgba(16, 185, 129, 0.3) !important;
}

/* Tum metinler beyaz/açık tonlarda olsun (kart koyu artık) */
.login-card label,
.login-card .info-text,
.login-card p,
.login-card .lock-text {
    color: #d4d4dc !important;
}

.login-card small,
.login-card .helper-text {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Donut ve link altlarındaki dekoratif şeritler — koyu mod uyumu */
.login-card hr,
.login-card .divider {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent) !important;
}
