:root {
    --auth-bg: radial-gradient(circle at top left, rgba(12, 102, 228, 0.18), transparent 34%), radial-gradient(circle at bottom right, rgba(110, 93, 198, 0.14), transparent 32%), linear-gradient(180deg, #f7f8f9 0%, #eef2f7 100%);
    --auth-surface: rgba(255, 255, 255, 0.9);
    --auth-surface-strong: #ffffff;
    --auth-border: rgba(9, 30, 66, 0.14);
    --auth-text: #172b4d;
    --auth-muted: #626f86;
    --auth-accent: #0c66e4;
    --auth-accent-strong: #0055cc;
    --auth-purple: #6e5dc6;
    --auth-shadow: 0 30px 70px rgba(9, 30, 66, 0.16);
    --auth-radius-xl: 28px;
    --auth-radius-lg: 18px;
    --auth-radius-md: 14px;
}

html[data-theme='dark'] {
    --auth-bg: radial-gradient(circle at top left, rgba(87, 157, 255, 0.16), transparent 34%), radial-gradient(circle at bottom right, rgba(110, 93, 198, 0.18), transparent 32%), linear-gradient(180deg, #101214 0%, #161a1d 100%);
    --auth-surface: rgba(29, 33, 37, 0.92);
    --auth-surface-strong: #1d2125;
    --auth-border: rgba(159, 173, 188, 0.18);
    --auth-text: #dee4ea;
    --auth-muted: #9fadbc;
    --auth-accent: #579dff;
    --auth-accent-strong: #85b8ff;
    --auth-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

html, body {
    min-height: 100%;
}

body.auth-page {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--auth-text);
    background: var(--auth-bg);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-frame {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.auth-frame.auth-frame-compact {
    width: min(540px, 100%);
    grid-template-columns: 1fr;
}

.auth-brand-panel {
    position: relative;
    padding: 34px;
    background: linear-gradient(145deg, #09326c 0%, #0c66e4 56%, #6e5dc6 100%);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 30%), radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.14), transparent 24%);
    pointer-events: none;
}

.auth-brand-panel > * {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-brand-mark i {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(248, 250, 252, 0.92);
    font-size: 0.76rem;
    font-weight: 600;
}

.auth-brand-panel h1,
.auth-brand-panel h2 {
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.auth-brand-panel p {
    color: rgba(241, 245, 249, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 34ch;
    margin-bottom: 0;
}

.auth-brand-points {
    display: grid;
    gap: 11px;
    margin-top: 28px;
}

.auth-brand-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(241, 245, 249, 0.82);
    font-size: 0.84rem;
}

.auth-brand-point i {
    color: #bfdbfe;
    margin-top: 3px;
}

.auth-panel {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--auth-surface-strong);
}

.auth-panel.auth-panel-centered {
    text-align: center;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--auth-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-title {
    margin: 0 0 10px;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-subtitle {
    margin: 0 0 22px;
    color: var(--auth-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form .form-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--auth-text);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.auth-input-group {
    background: color-mix(in srgb, var(--auth-surface-strong) 72%, #f7f8f9);
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    padding: 0 11px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input-group:focus-within {
    border-color: rgba(12, 102, 228, 0.48);
    background: var(--auth-surface-strong);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-accent) 18%, transparent);
}

.auth-input-group i {
    color: var(--auth-muted);
    font-size: 0.9rem;
}

.auth-input-group .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 11px 0;
    font-size: 0.88rem;
    color: var(--auth-text);
}

.auth-input-group .form-control::placeholder {
    color: color-mix(in srgb, var(--auth-muted) 76%, transparent);
}

.auth-input-group .form-control:focus {
    box-shadow: none;
}

.auth-btn {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-accent), #1d7afc);
    box-shadow: 0 16px 28px rgba(12, 102, 228, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(12, 102, 228, 0.28);
    filter: brightness(1.02);
}

.auth-alert {
    border-radius: 10px;
    border: 1px solid rgba(227, 73, 53, 0.22);
    background: rgba(227, 73, 53, 0.1);
    color: #ae2e24;
    padding: 11px 13px;
    font-size: 0.82rem;
}

.auth-helper-link {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-helper-link:hover {
    text-decoration: underline;
}

.auth-footer-note {
    margin-top: 22px;
    text-align: center;
    color: var(--auth-muted);
    font-size: 0.82rem;
}

.auth-method-list {
    display: grid;
    gap: 10px;
}

.auth-method-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    text-align: left;
    background: color-mix(in srgb, var(--auth-surface-strong) 72%, #f7f8f9);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    color: var(--auth-text);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-method-btn:hover {
    background: var(--auth-surface-strong);
    border-color: rgba(12, 102, 228, 0.38);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.auth-method-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(12, 102, 228, 0.12);
    color: var(--auth-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.auth-method-meta {
    margin-left: auto;
    color: #94a3b8;
}

.auth-code-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 20px;
}

.auth-code-inputs input {
    width: 100%;
    min-width: 0;
    height: 54px;
    border-radius: 12px;
    border: 1px solid var(--auth-border);
    background: color-mix(in srgb, var(--auth-surface-strong) 72%, #f7f8f9);
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--auth-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    -moz-appearance: textfield;
}

.auth-code-inputs input::-webkit-outer-spin-button,
.auth-code-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.auth-code-inputs input:focus {
    border-color: rgba(12, 102, 228, 0.48);
    background: var(--auth-surface-strong);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-accent) 18%, transparent);
    transform: translateY(-1px);
}

.auth-meta-card {
    background: color-mix(in srgb, var(--auth-surface-strong) 72%, #f7f8f9);
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    padding: 13px 15px;
    text-align: left;
    color: var(--auth-muted);
    font-size: 0.82rem;
    margin-bottom: 18px;
}

.auth-meta-card strong {
    color: var(--auth-text);
}

@media (max-width: 991.98px) {
    .auth-shell {
        padding: 0;
        align-items: stretch;
    }

    .auth-frame,
    .auth-frame.auth-frame-compact {
        width: 100%;
        min-height: 100vh;
        grid-template-columns: 1fr;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .auth-brand-panel {
        min-height: auto;
        padding: 28px 24px;
    }

    .auth-brand-points {
        display: none;
    }

    .auth-panel {
        padding: 28px 24px 36px;
    }
}

@media (max-width: 575.98px) {
    .auth-panel,
    .auth-brand-panel {
        padding-left: 20px;
        padding-right: 20px;
    }

    .auth-code-inputs {
        gap: 8px;
    }

    .auth-code-inputs input {
        height: 56px;
        font-size: 1.35rem;
        border-radius: 14px;
    }
}

/* =================================================================
   TEMA BAZLI LOGO (compact auth sayfalari)
   custom-style.css yüklenmedigi için buraya kopyalandi
================================================================= */
.theme-logo-light { display: block !important; }
.theme-logo-dark { display: none !important; }

[data-theme="dark"] .theme-logo-light { display: none !important; }
[data-theme="dark"] .theme-logo-dark { display: block !important; }
