.login-shell {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--joi-bg);
}

/* SOL — Hero (animated multi-color gradient) */
.login-hero {
    flex: 0 0 55%;
    position: relative;
    background: linear-gradient(120deg,
        #7c3aed 0%, #8b5cf6 20%, #ec4899 40%, #f97316 60%, #06b6d4 80%, #7c3aed 100%);
    background-size: 300% 300%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px;
    overflow: hidden;
    animation: fade-in .6s ease, gradient-x 18s ease-in-out infinite;
}

    .login-hero::before, .login-hero::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.5;
        animation: float 6s ease-in-out infinite;
    }

    .login-hero::before {
        width: 480px; height: 480px;
        top: -160px; right: -120px;
        background: #06b6d4;
    }

    .login-hero::after {
        width: 380px; height: 380px;
        bottom: -120px; left: -100px;
        background: #fbbf24;
        opacity: 0.30;
        animation-delay: -3s;
    }

.hero-brand {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 14px;
}

.hero-logo {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; letter-spacing: 1px;
}

.hero-brand-text { font-size: 22px; font-weight: 700; letter-spacing: 0.4px; }
.hero-brand-sub  { font-size: 13px; opacity: 0.85; margin-top: 2px; }

.hero-content { position: relative; z-index: 2; max-width: 520px; }
.hero-title    { font-size: 44px; font-weight: 800; line-height: 1.15; margin: 0 0 18px; }
.hero-subtitle { font-size: 17px; line-height: 1.65; opacity: 0.92; margin: 0 0 32px; }

.hero-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.hero-feature {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 14px 16px;
}

.hero-feature-icon { font-size: 22px; }
.hero-feature-text { font-size: 14px; font-weight: 500; }

.hero-footer {
    position: relative; z-index: 2;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; opacity: 0.8;
}

/* SAĞ — Form */
.login-panel {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    background: var(--joi-bg);
}

.login-panel-topbar {
    position: absolute; top: 20px; right: 28px;
    display: flex; gap: 10px; z-index: 3;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 48px 44px;
    background: var(--joi-surface);
    border-radius: 20px;
    box-shadow: var(--joi-shadow);
    border: 1px solid var(--joi-border);
    animation: fade-up 0.5s ease;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-card.shake { animation: shake 0.45s; }
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%,60% { transform: translateX(-10px); }
    40%,80% { transform: translateX(10px); }
}

.login-card-title    { font-size: 28px; font-weight: 800; color: var(--joi-text); margin: 0 0 6px; }
.login-card-subtitle { font-size: 14px; color: var(--joi-text-muted); margin: 0 0 32px; }

.login-field { margin-bottom: 18px; }
.login-field-label {
    font-size: 13px; font-weight: 600;
    color: var(--joi-text); margin-bottom: 6px; display: block;
}

.login-row { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 24px; }

.login-link { font-size: 13px; color: var(--joi-primary); cursor: pointer; }
.login-link:hover { text-decoration: underline; }

.login-error {
    background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
    border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px;
}
[data-theme='dark'] .login-error {
    background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); color: #fca5a5;
}

.login-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 24px 0 16px; color: var(--joi-text-muted); font-size: 12px;
}
    .login-divider::before, .login-divider::after {
        content: ''; flex: 1; height: 1px; background: var(--joi-border);
    }

.login-hint { text-align: center; font-size: 13px; color: var(--joi-text-muted); }

/* Karanlık temada DevExtreme TextBox arka planı */
[data-theme='dark'] .dx-texteditor.dx-editor-outlined {
    background: rgba(255,255,255,0.04);
    border-color: var(--joi-border);
}

/* Responsive */
@media (max-width: 960px) {
    .login-hero { display: none; }
    .login-panel { flex: 1; }
}
