/* ================================================================
   ArchFin — Premium Login Page
   Based on Maysu premium login style
   Colors: #2563EB (primary blue), #3B82F6 (lighter blue)
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Container ── */
.login-container { display: flex; width: 100%; min-height: 100vh; }

/* ── Sol Panel — Showcase ── */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px;
}
.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(37,99,235,0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(59,130,246,0.06) 0%, transparent 40%);
    animation: bgShift 20s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes bgShift { 0% { transform: translate(0,0); } 100% { transform: translate(-3%,-2%); } }

.login-left-content {
    position: relative;
    z-index: 1;
    max-width: 440px;
    width: 100%;
}

/* Logo (sol panel) */
.login-left-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 56px;
}
.login-left-mark {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-left-mark i { font-size: 1.15rem; color: #fff; }
.login-left-logo span {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.3px;
}

/* Slider */
.login-slides { position: relative; min-height: 240px; }
.login-slide { display: none; animation: fadeSlide .5s ease; }
.login-slide.active { display: block; }
.login-slide-icon {
    width: 72px; height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
}
.login-slide h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 12px;
}
.login-slide p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.7;
}
@keyframes fadeSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Dots */
.login-dots { display: flex; gap: 8px; margin-top: 36px; }
.login-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all .3s ease;
}
.login-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #2563EB;
}

/* ── Sağ Panel — Form ── */
.login-right {
    width: 480px;
    min-width: 480px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
}
.login-right-inner {
    width: 100%;
    max-width: 360px;
}
.login-right h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.login-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 36px;
}

/* Form grupları */
.login-group { margin-bottom: 22px; }
.login-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 7px;
}

/* Input wrap */
.login-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: all .2s ease;
    position: relative;
}
.login-input-wrap:focus-within {
    border-color: #2563EB;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.login-input-wrap > i:first-child {
    padding: 0 0 0 14px;
    color: #94a3b8;
    font-size: 1rem;
    flex-shrink: 0;
}
.login-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 14px;
    font-size: 0.9rem;
    color: #0f172a;
    outline: none;
    font-family: inherit;
    min-width: 0;
}
.login-input-wrap input::placeholder { color: #cbd5e1; }
.login-input-wrap input:-webkit-autofill {
    -webkit-text-fill-color: #0f172a;
    -webkit-box-shadow: 0 0 0 40px #f8fafc inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Şifre göster/gizle */
.login-eye {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: color .15s ease;
    font-size: 1rem;
    flex-shrink: 0;
    margin-right: 2px;
}
.login-eye:hover { color: #475569; }
.login-eye:focus-visible { outline: 2px solid #2563EB; outline-offset: -2px; border-radius: 6px; }

/* Beni hatırla */
.login-options { display: flex; align-items: center; margin-bottom: 28px; }
.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #64748b;
    user-select: none;
}
.login-remember input {
    width: 16px; height: 16px;
    accent-color: #2563EB;
    cursor: pointer;
    margin: 0;
}

/* Giriş butonu */
.login-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s ease;
    font-family: inherit;
}
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.login-submit:active { transform: scale(0.985); }
.login-submit:focus-visible { outline: 2px solid #2563EB; outline-offset: 3px; }

/* Loading state */
.login-submit .ls-loading { display: none; align-items: center; gap: 8px; }
.login-submit.busy .ls-text { display: none; }
.login-submit.busy .ls-loading { display: flex; }
.login-submit.busy { opacity: 0.7; pointer-events: none; }
.ls-spinner {
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lsSpin .6s linear infinite;
}
@keyframes lsSpin { to { transform: rotate(360deg); } }

/* Hata */
.login-field-err {
    display: block;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 5px;
    min-height: 0;
}
.login-alert:empty { display: none; }
.login-alert {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.8125rem;
    margin-bottom: 22px;
}

/* Validation error state */
.login-input-wrap:has(.input-validation-error) {
    border-color: #ef4444;
}
.login-input-wrap:has(.input-validation-error):focus-within {
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
    border-color: #ef4444;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .login-left { display: none; }
    .login-right { width: 100%; min-width: unset; }
}
@media (max-width: 576px) {
    .login-right { padding: 32px 24px; min-height: 100dvh; }
    .login-right-inner { max-width: 100%; }
    .login-submit { min-height: 48px; }
}

/* ── Dark Mode ── */
[data-theme="dark"] .login-right {
    background: #111827;
    color: #E5E7EB;
}
[data-theme="dark"] .login-right h2 { color: #E5E7EB; }
[data-theme="dark"] .login-subtitle  { color: #94A3B8; }
[data-theme="dark"] .login-group label { color: #94A3B8; }

[data-theme="dark"] .login-input-wrap {
    background: #111C2E;
    border-color: #273449;
    color: #E5E7EB;
}
[data-theme="dark"] .login-input-wrap:focus-within {
    border-color: #6366F1;
    background: #111C2E;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.22);
}
[data-theme="dark"] .login-input-wrap input {
    color: #E5E7EB;
    background: transparent;
}
[data-theme="dark"] .login-input-wrap input::placeholder { color: rgba(148,163,184,0.55); }
[data-theme="dark"] .login-input-wrap input:-webkit-autofill {
    -webkit-text-fill-color: #E5E7EB;
    -webkit-box-shadow: 0 0 0 40px #111C2E inset !important;
}
[data-theme="dark"] .login-eye { color: #64748B; }
[data-theme="dark"] .login-eye:hover { color: #94A3B8; }
[data-theme="dark"] .login-remember { color: #94A3B8; }
[data-theme="dark"] .login-submit {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
}
[data-theme="dark"] .login-submit:hover { box-shadow: 0 8px 24px rgba(99,102,241,0.35); }
[data-theme="dark"] .login-alert {
    background: rgba(248,113,113,0.12);
    border-left-color: #F87171;
    color: #FECACA;
}
[data-theme="dark"] .login-field-err { color: #F87171; }

/* ── Prefers reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .login-slide { animation: none; }
    .login-submit { transition: none; }
    .login-input-wrap { transition: none; }
    .login-left::before { animation: none; }
    .login-dot { transition: none; }
}
