.auth-body {
    margin: 0;
    min-height: 100vh;
    background: #f3f4f8;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #1e1b2e;
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

.auth-brand {
    display: none;
    width: 45%;
    max-width: 560px;
    background: linear-gradient(145deg, #393085 0%, #2a2368 55%, #1f1a4f 100%);
    color: #fff;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 40%);
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 380px;
}

.auth-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.auth-brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}

.auth-brand-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0 0 2rem;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.auth-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
}

.auth-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
}

.auth-panel-inner {
    width: 100%;
    max-width: 420px;
}

.auth-footer {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: rgba(57, 48, 133, 0.45);
    text-align: center;
}

.auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #393085;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.auth-card-subtitle {
    font-size: 0.875rem;
    color: rgba(57, 48, 133, 0.6);
    margin: 0 0 1.75rem;
}

.auth-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #393085;
    margin-bottom: 0.4rem;
}

.auth-field input,
.auth-field textarea,
.auth-field select,
.auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 0.95rem;
    border: 1px solid #d8d6e5;
    border-radius: 10px;
    font-size: 0.9375rem;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    background: #fff;
    color: #1e1b2e;
    font-family: inherit;
}

.auth-field input:hover,
.auth-field textarea:hover,
.auth-field select:hover,
.auth-input:hover {
    border-color: #c4c0d6;
}

.auth-field input:focus,
.auth-field textarea:focus,
.auth-field select:focus,
.auth-input:focus {
    border-color: #393085;
    box-shadow: 0 0 0 3px rgba(57, 48, 133, 0.14);
    background: #fff;
}

.auth-field input:disabled,
.auth-field select:disabled {
    background: #f3f4f8;
    color: #94a3b8;
}

.auth-submit {
    width: 100%;
    padding: 0.7rem 1.1rem;
    background: #393085;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
    box-shadow: 0 1px 2px rgba(57, 48, 133, 0.18);
    line-height: 1.35;
}

.auth-submit:hover:not(:disabled) {
    background: #2e2669;
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.auth-link {
    color: #393085;
    font-weight: 500;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.auth-label-row label {
    margin-bottom: 0;
}

.auth-forgot-link {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.auth-divider {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ebe9f2;
    font-size: 0.875rem;
    color: rgba(57, 48, 133, 0.6);
}

.auth-panel-inner--register {
    max-width: 640px;
}

/* Kayıt adımları */
.auth-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    position: relative;
    padding: 0 0.15rem;
}

.auth-steps-track {
    position: absolute;
    top: 1rem;
    left: 16.666%;
    right: 16.666%;
    height: 2px;
    margin-top: -1px;
    background: #ebe9f2;
    z-index: 0;
    overflow: hidden;
    border-radius: 2px;
    pointer-events: none;
}

.auth-steps-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-width: 100%;
    background: #393085;
    transition: width 0.35s ease;
    border-radius: 2px;
}

.auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.auth-step-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    background: #fff;
    border: 2px solid #e2e0eb;
    color: rgba(57, 48, 133, 0.45);
    transition: all 0.25s ease;
}

.auth-step.active .auth-step-circle {
    border-color: #393085;
    background: #393085;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(57, 48, 133, 0.15);
}

.auth-step.done .auth-step-circle {
    border-color: #393085;
    background: #fff;
    color: #393085;
}

.auth-step-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(57, 48, 133, 0.45);
    text-align: center;
    line-height: 1.2;
}

.auth-step.active .auth-step-label,
.auth-step.done .auth-step-label {
    color: #393085;
}

.auth-step-panel {
    animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-type-btn {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    background: rgba(57, 48, 133, 0.08);
    color: #393085;
}

.auth-type-btn.active {
    background: #393085;
    color: #fff;
    border-color: #393085;
}

.auth-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

.auth-nav > .auth-btn-secondary,
.auth-nav > .auth-submit {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-btn-secondary {
    padding: 0.7rem 1.1rem;
    background: #fff;
    color: #393085;
    border: 1px solid #d8d6e5;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1.35;
}

.auth-btn-secondary:hover {
    background: rgba(57, 48, 133, 0.05);
    border-color: #c4c0d6;
}

@media (max-width: 420px) {
    .auth-nav {
        flex-direction: column-reverse;
    }

    .auth-nav > .auth-btn-secondary,
    .auth-nav > .auth-submit {
        flex: 1 1 auto;
        width: 100%;
        white-space: normal;
    }
}

.auth-summary-acc {
    border: 1px solid #ebe9f2;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #fafafc;
    overflow: hidden;
}

.auth-summary-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font: inherit;
    color: #393085;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
}

.auth-summary-toggle:hover {
    background: rgba(57, 48, 133, 0.04);
}

.auth-summary-chevron {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(57, 48, 133, 0.08);
    font-size: 0.75rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.auth-summary-chevron.is-open {
    transform: rotate(180deg);
}

.auth-summary {
    border-top: 1px solid #ebe9f2;
    padding: 0.85rem 1rem 1rem;
    margin: 0;
    font-size: 0.8125rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
}

.auth-summary dt {
    color: rgba(57, 48, 133, 0.55);
    margin: 0;
}

.auth-summary dd {
    color: #393085;
    font-weight: 600;
    margin: 0;
    text-align: right;
}

.auth-field-error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

.auth-body--admin {
    background: linear-gradient(145deg, #393085 0%, #1f1a4f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.auth-admin-wrap {
    width: 100%;
    max-width: 400px;
}

.auth-admin-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.auth-admin-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #393085;
    background: rgba(57, 48, 133, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.auth-body--admin .auth-footer {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1.5rem;
}

.auth-body--admin .auth-card-title,
.auth-body--admin .auth-card-subtitle {
    text-align: left;
}

[x-cloak] { display: none !important; }

.auth-panel-inner--wide {
    max-width: 640px;
}

.auth-panel-inner--login {
    max-width: 440px;
}

.auth-flow--login .auth-flow-card {
    padding: 1.75rem 1.65rem 1.5rem;
}

.auth-login-head {
    margin-bottom: 1.35rem;
}

.auth-login-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #393085;
    background: rgba(57, 48, 133, 0.08);
    border: 1px solid rgba(57, 48, 133, 0.1);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    margin-bottom: 0.85rem;
}

.auth-flow--login .auth-card-title {
    margin-bottom: 0.35rem;
}

.auth-flow--login .auth-card-subtitle {
    margin-bottom: 0;
    line-height: 1.45;
}

.auth-login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-login-submit {
    margin-top: 0.35rem;
}

.auth-flow--login .auth-divider {
    margin-top: 1.35rem;
    padding-top: 1.25rem;
}

@media (min-width: 1024px) {
    .auth-brand {
        display: flex;
        align-items: center;
    }
}

@media (max-width: 1023px) {
    .auth-panel {
        background: linear-gradient(180deg, #393085 0%, #393085 120px, #f3f4f8 120px);
    }

    .auth-panel-inner {
        background: #fff;
        border-radius: 1rem;
        padding: 2rem 1.5rem;
        box-shadow: 0 4px 24px rgba(57, 48, 133, 0.08);
        border: 1px solid #ebe9f2;
    }

    .auth-card-title,
    .auth-card-subtitle {
        text-align: center;
    }
}

.auth-phone-row {
    display: flex;
    align-items: stretch;
}
.auth-phone-row input,
.auth-phone-row .auth-input {
    border-radius: 0 10px 10px 0 !important;
    flex: 1;
}
.auth-dial {
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    background: #f1f5f9;
    border: 1px solid #d8d6e5;
    border-right: 0;
    border-radius: 10px 0 0 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #393085;
    white-space: nowrap;
}

.auth-alert-info {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #3730a3;
}

.auth-panel-inner--checkout {
    max-width: 640px;
    width: 100%;
}

.auth-shell--checkout .auth-panel {
    justify-content: flex-start;
    padding-top: 2rem;
}

.auth-flow-card {
    background: #fff;
    border: 1px solid #ebe9f2;
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.35rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.auth-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.3rem;
    background: #eef0f6;
    border-radius: 12px;
}
.auth-mode-tab {
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(57, 48, 133, 0.55);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.auth-mode-tab.is-active {
    background: #fff;
    color: #393085;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.auth-checkout-banner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(57,48,133,0.08), rgba(57,48,133,0.02));
    border: 1px solid rgba(57,48,133,0.15);
}
.auth-checkout-banner strong { color: #393085; font-size: 0.95rem; }
.auth-checkout-banner span { color: rgba(57,48,133,0.7); font-size: 0.8125rem; }

.auth-password-box {
    padding: 1.05rem 1.1rem;
    border-radius: 14px;
    border: 1px solid #ebe9f2;
    background: linear-gradient(180deg, #fafafc 0%, #fff 100%);
}
.auth-password-title {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #393085;
}
.auth-password-hint {
    margin: 0 0 0.95rem;
    font-size: 0.78rem;
    color: rgba(57, 48, 133, 0.55);
}
.auth-pass-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-pass-wrap .auth-input {
    padding-right: 4.25rem;
}
.auth-pass-toggle {
    position: absolute;
    right: 0.45rem;
    border: none;
    background: #f1f0f7;
    color: #393085;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
}
.auth-pass-toggle:hover { background: #e8e6f2; }
.auth-pass-meter {
    margin-top: 0.5rem;
    height: 4px;
    border-radius: 999px;
    background: #ebe9f2;
    overflow: hidden;
}
.auth-pass-meter span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width 0.2s ease, background 0.2s ease;
}
.auth-pass-meter span.is-weak { width: 33%; background: #ef4444; }
.auth-pass-meter span.is-mid { width: 66%; background: #f59e0b; }
.auth-pass-meter span.is-strong { width: 100%; background: #16a34a; }
.auth-pass-strength {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: rgba(57, 48, 133, 0.55);
    min-height: 1rem;
}

.auth-consent-block {
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid #ebe9f2;
    background: #f8f8fc;
}
.auth-consent-title {
    margin: 0 0 0.65rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #393085;
}
.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #334155;
    margin-bottom: 0.55rem;
    cursor: pointer;
}
.auth-check:last-child { margin-bottom: 0; }
.auth-check input { margin-top: 0.15rem; accent-color: #393085; width: auto; }
.auth-legal-link {
    border: none;
    background: none;
    padding: 0;
    color: #393085;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.auth-legal-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.auth-legal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}
.auth-legal-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: min(82vh, 760px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 28px 60px rgba(15,23,42,0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.auth-legal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    border-bottom: 1px solid #ebe9f2;
    background: #fafafc;
}
.auth-legal-head h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #393085;
}
.auth-legal-close {
    border: none;
    background: #eef0f6;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: #393085;
}
.auth-legal-body {
    padding: 1.25rem 1.35rem;
    overflow: auto;
    font-size: 0.925rem;
    line-height: 1.65;
    color: #334155;
    flex: 1;
    min-height: 12rem;
}
.auth-legal-body p { margin: 0 0 0.85rem; }
.auth-legal-body ul, .auth-legal-body ol { margin: 0 0 0.85rem; padding-left: 1.25rem; }
.auth-legal-body a { color: #393085; }
.auth-legal-foot {
    padding: 0.95rem 1.25rem;
    border-top: 1px solid #ebe9f2;
    display: flex;
    justify-content: flex-end;
    background: #fafafc;
}
.auth-legal-accept {
    width: auto !important;
    min-width: 9rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.auth-field-span { grid-column: 1 / -1; }

.auth-country-trigger.auth-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
}
