.auth-page {
    --auth-primary: #525ce5;
    --auth-primary-strong: #3f48c9;
    --auth-primary-soft: rgba(82, 92, 229, .12);
    --auth-bg: #f4f5fb;
    --auth-surface: #fff;
    --auth-text: #1f2340;
    --auth-muted: #6b7090;
    --auth-border: #dfe1ee;
    --auth-field-bg: #fff;
    --auth-danger: #e5484d;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--auth-bg);
    color: var(--auth-text);
}

.auth-page.auth-dark {
    --auth-primary: #7b84f3;
    --auth-primary-strong: #525ce5;
    --auth-primary-soft: rgba(123, 132, 243, .16);
    --auth-bg: #0a1533;
    --auth-surface: #111d42;
    --auth-text: #e8eaf6;
    --auth-muted: #9aa3c7;
    --auth-border: #26335f;
    --auth-field-bg: #0d1838;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    padding: 2.25rem 1.5rem 4.5rem;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .18) 0, transparent 55%),
        linear-gradient(135deg, #6670f0 0%, #525ce5 45%, #3a42b8 100%);
}

.auth-brand::before,
.auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.auth-brand::before { width: 320px; height: 320px; right: -120px; top: -140px; }
.auth-brand::after  { width: 220px; height: 220px; left: -80px; bottom: -110px; }

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

.auth-brand-logo { height: 40px; width: auto; max-width: 70%; filter: brightness(0) invert(1); }

.auth-brand-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.auth-brand-text { display: none; margin: 0; opacity: .85; max-width: 26rem; }

.auth-panel {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 1rem 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 26rem;
    margin-top: -3rem;
    padding: 1.75rem 1.25rem 1.5rem;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px -18px rgba(31, 35, 64, .35);
    position: relative;
    z-index: 2;
}

.auth-card h1 {
    margin: 0 0 .25rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--auth-text);
}

.auth-sub { margin: 0 0 1.5rem; color: var(--auth-muted); font-size: .95rem; }

.auth-field { margin-bottom: 1rem; }

.auth-field label {
    display: block;
    margin-bottom: .4rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--auth-text);
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input > i.lead-icon {
    position: absolute;
    left: .95rem;
    color: var(--auth-muted);
    pointer-events: none;
}

.auth-input .form-control {
    height: 3rem;
    padding: 0 3rem 0 2.6rem;
    font-size: 16px;
    border-radius: .75rem;
    border: 1px solid var(--auth-border);
    background: var(--auth-field-bg);
    color: var(--auth-text);
    transition: border-color .15s, box-shadow .15s;
}

.auth-input .form-control::placeholder { color: var(--auth-muted); opacity: .7; }

.auth-input .form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 .25rem var(--auth-primary-soft);
}

.auth-input .form-control:-webkit-autofill,
.auth-input .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--auth-text);
    box-shadow: 0 0 0 100px var(--auth-field-bg) inset;
    caret-color: var(--auth-text);
}

.auth-input.is-invalid .form-control {
    border-color: var(--auth-danger);
    box-shadow: 0 0 0 .25rem rgba(229, 72, 77, .12);
}

.auth-toggle {
    position: absolute;
    right: .35rem;
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: .6rem;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
}

.auth-toggle:hover,
.auth-toggle:focus-visible { color: var(--auth-primary); background: var(--auth-primary-soft); outline: 0; }

.auth-hint {
    display: none;
    margin-top: .4rem;
    font-size: .8rem;
    color: #b7791f;
}

.auth-hint.show { display: block; }

.auth-error {
    display: none;
    margin-bottom: 1rem;
    padding: .7rem .9rem;
    font-size: .875rem;
    color: var(--auth-danger);
    background: rgba(229, 72, 77, .1);
    border: 1px solid rgba(229, 72, 77, .25);
    border-radius: .75rem;
}

.auth-error.show { display: block; }

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.auth-options .form-check { margin: 0; display: flex; align-items: center; gap: .5rem; padding-left: 0; }
.auth-options .form-check-input { float: none; margin: 0; width: 1.15rem; height: 1.15rem; cursor: pointer; }
.auth-options .form-check-label { margin: 0; color: var(--auth-muted); cursor: pointer; font-size: .9rem; }

.auth-submit {
    width: 100%;
    height: 3rem;
    font-size: 1rem;
    font-weight: 600;
    border: 0;
    border-radius: .75rem;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-primary-strong), #525ce5);
    box-shadow: 0 10px 22px -10px rgba(82, 92, 229, .8);
    transition: transform .1s, box-shadow .15s, opacity .15s;
}

.auth-submit:hover:not(:disabled) { color: #fff; box-shadow: 0 12px 26px -10px rgba(82, 92, 229, .95); }
.auth-submit:active:not(:disabled) { transform: translateY(1px); }
.auth-submit:disabled { opacity: .75; cursor: progress; }

.auth-foot {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .8rem;
    color: var(--auth-muted);
}

.auth-foot img { width: 22px; vertical-align: middle; margin-left: .25rem; }

/* MCP izin ekranı (mcpConnect) */
.mc-card h1 { font-size: 1.25rem; line-height: 1.35; }
.mc-card h1 b, .mc-card .auth-sub b { color: var(--auth-primary); }

.mc-pair {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.mc-dot {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.mc-dot--client { color: var(--auth-primary); background: var(--auth-primary-soft); border: 1px solid var(--auth-border); }
.mc-dot--app { color: #fff; background: linear-gradient(135deg, var(--auth-primary-strong), #525ce5); }
.mc-link { color: var(--auth-muted); }

.mc-label { margin: 0 0 .5rem; font-size: .85rem; font-weight: 600; color: var(--auth-text); }

.mc-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: .75rem .9rem;
    border: 1px solid var(--auth-border);
    border-radius: .75rem;
    background: var(--auth-field-bg);
}

.mc-list li { display: flex; gap: .6rem; align-items: baseline; padding: .25rem 0; font-size: .9rem; color: var(--auth-text); }
.mc-list li i { color: #2f9e6b; }
.mc-list li.mc-no { margin-top: .35rem; padding-top: .6rem; border-top: 1px dashed var(--auth-border); color: var(--auth-muted); }
.mc-list li.mc-no i { color: var(--auth-muted); }

.mc-warn {
    display: flex;
    gap: .6rem;
    align-items: baseline;
    margin-bottom: 1.25rem;
    padding: .7rem .9rem;
    font-size: .875rem;
    color: #b7791f;
    background: rgba(183, 121, 31, .1);
    border: 1px solid rgba(183, 121, 31, .28);
    border-radius: .75rem;
}

.mc-actions { display: flex; flex-direction: column; gap: .6rem; }
.mc-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.mc-deny {
    width: 100%;
    height: 3rem;
    font-weight: 600;
    border-radius: .75rem;
    color: var(--auth-danger);
    background: transparent;
    border: 1px solid rgba(229, 72, 77, .35);
}

.mc-deny:hover, .mc-deny:focus-visible { color: var(--auth-danger); background: rgba(229, 72, 77, .08); }

.mc-foot { margin: 1.25rem 0 0; font-size: .8rem; line-height: 1.5; color: var(--auth-muted); text-align: center; }

.mc-state { text-align: center; }
.mc-state > i { font-size: 2.5rem; color: var(--auth-danger); margin-bottom: 1rem; }

@media (min-width: 576px) {
    .auth-card { padding: 2.25rem 2rem 1.75rem; }
}

@media (min-width: 992px) {
    .auth-shell { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
    .auth-brand { padding: 3rem; gap: 1.25rem; }
    .auth-brand-logo { height: 54px; }
    .auth-brand-title { font-size: 1.9rem; }
    .auth-brand-text { display: block; font-size: 1.05rem; }
    .auth-panel { align-items: center; padding: 2rem; }
    .auth-card { margin-top: 0; border: 0; box-shadow: none; background: transparent; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-submit, .auth-input .form-control { transition: none; }
}
