:root {
    --primary: #1e3a8a;
    --primary-dark: #172554;
    --primary-light: #3b82f6;
    --accent: #0ea5e9;
    --bg: #f1f5f9;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --success: #16a34a;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, .12), 0 8px 10px -6px rgba(15, 23, 42, .08);
    --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, .25);
    --radius: 12px;
    --radius-sm: 8px;
}

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

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    background: var(--bg);
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    width: 100%;
    min-height: 100vh;
}

/* Sol panel - marka */
.brand-panel {
    position: relative;
    background:
        radial-gradient(ellipse at top right, rgba(14, 165, 233, .25), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(59, 130, 246, .25), transparent 55%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.6), transparent 70%);
    pointer-events: none;
}

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

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff, #e0f2fe);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.brand-logo svg {
    width: 26px;
    height: 26px;
    color: var(--primary-dark);
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .3px;
}

.brand-name small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: .75;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.brand-hero {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.brand-hero h1 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -.5px;
}

.brand-hero p {
    font-size: 16px;
    line-height: 1.6;
    opacity: .85;
}

.brand-features {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin-top: 36px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    opacity: .9;
}

.feature-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
}

.feature-icon svg { width: 16px; height: 16px; }

.brand-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    opacity: .6;
    letter-spacing: .3px;
}

/* Sağ panel - form */
.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--surface);
}

.form-container {
    width: 100%;
    max-width: 420px;
}

.form-header {
    margin-bottom: 36px;
}

.form-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -.3px;
}

.form-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: #fecaca;
}

.alert svg { width: 18px; height: 18px; flex-shrink: 0; }

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: .2px;
}

.input-wrap {
    position: relative;
}

.input-wrap svg.icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

.form-input:hover { border-color: #cbd5e1; }

.form-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
    color: var(--text-muted);
    display: grid;
    place-items: center;
    border-radius: 4px;
}

.password-toggle:hover { color: var(--text); }
.password-toggle svg { width: 18px; height: 18px; }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 24px;
    font-size: 13px;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-wrap input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover { text-decoration: underline; }

.btn-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .06s, box-shadow .2s, filter .2s;
    box-shadow: 0 4px 14px rgba(30, 58, 138, .25);
    font-family: inherit;
    letter-spacing: .2px;
}

.btn-submit:hover { filter: brightness(1.05); box-shadow: 0 6px 20px rgba(30, 58, 138, .35); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit svg { width: 18px; height: 18px; }

.form-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.form-footer strong { color: var(--text); font-weight: 600; }

/* Responsive */
@media (max-width: 960px) {
    .login-wrapper { grid-template-columns: 1fr; }
    .brand-panel { display: none; }
    .form-panel { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .form-header h2 { font-size: 22px; }
    .form-panel { padding: 24px 18px; }
}
