.auth-page {
    --auth-bg: var(--wm-bg, #f3f6f6);
    --auth-surface: var(--wm-surface, #ffffff);
    --auth-border: var(--wm-line, rgba(16, 35, 44, .13));
    --auth-text: var(--wm-ink, #10232c);
    --auth-soft: var(--wm-muted, #62727b);
    --auth-muted: var(--wm-muted, #62727b);
    --auth-input-bg: var(--wm-surface-strong, #e8eef0);
    --auth-input-border: var(--wm-line, rgba(16, 35, 44, .13));
    --auth-placeholder: var(--wm-muted, #62727b);
    --auth-brand: var(--wm-accent, #0d8077);
    --auth-brand-dark: var(--wm-accent-bright, #16a596);
    display: grid;
    min-height: calc(100vh - 150px);
    place-items: center;
    padding: 36px 18px 48px;
    background: var(--auth-bg);
    color: var(--auth-text);
    transition: background-color .3s ease, color .3s ease;
}

.auth-card {
    position: relative;
    width: min(100%, 470px);
    margin: 0;
    padding: 34px 36px 30px !important;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    background: var(--auth-surface);
    box-shadow: 0 10px 30px -16px rgba(20, 30, 50, .22);
}

.auth-card--register {
    width: min(100%, 500px);
}

/*
 * Geliştirme sunucusu Razor görünümünü bellekte tuttuğunda eski iki sütunlu
 * işaretlemeyi de güvenli ve kompakt biçimde gösterir. Yeniden başlatılan
 * uygulamadaki yeni .auth-card yapısını etkilemez.
 */
.auth-frame {
    position: relative;
    width: min(100%, 500px);
    min-height: 0;
    margin: 0;
    padding: 34px 36px 30px !important;
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    background: var(--auth-surface);
    box-shadow: 0 10px 30px -16px rgba(20, 30, 50, .22);
}

.auth-frame .auth-story {
    display: none;
}

.auth-frame .auth-panel {
    padding: 0;
    background: transparent;
}

.auth-frame .auth-panel__inner {
    width: 100%;
    max-width: none;
}

.auth-frame .auth-heading {
    display: block;
}

.auth-frame .auth-heading__kicker {
    display: none;
}

.auth-card__accent {
    position: absolute;
    height: 4px;
    inset: 0 0 auto;
    background: linear-gradient(90deg, var(--auth-brand), var(--auth-brand-dark));
}

.auth-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
    background: transparent;
    z-index: auto;
}

.auth-heading__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--wm-accent-soft, rgba(13, 128, 119, .1));
    color: var(--auth-brand-dark);
}

.auth-heading__icon svg {
    width: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.auth-heading h1 {
    margin: 0;
    color: var(--auth-text);
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.65rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.18;
}

.auth-heading p {
    margin: 5px 0 0;
    color: var(--auth-soft);
    font-size: .86rem;
    line-height: 1.5;
}

.auth-form-fields {
    display: grid;
    gap: 18px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field label {
    margin: 0;
    color: var(--auth-text);
    font-size: .84rem;
    font-weight: 600;
}

.auth-field label span {
    color: var(--auth-brand-dark);
}

.auth-input {
    position: relative;
}

.auth-input > svg {
    position: absolute;
    z-index: 1;
    width: 18px;
    top: 50%;
    left: 14px;
    fill: none;
    stroke: var(--auth-muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px 11px 43px;
    border: 1px solid var(--auth-input-border);
    border-radius: 9px;
    outline: none;
    background: var(--auth-input-bg);
    color: var(--auth-text);
    font: inherit;
    font-size: .88rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.auth-input input::placeholder {
    color: var(--auth-placeholder);
}

.auth-input:focus-within > svg {
    stroke: var(--auth-brand-dark);
}

.auth-input input:focus {
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 .2rem rgba(0, 198, 170, .18);
}

.auth-input input.input-validation-error {
    border-color: #d84d57;
    box-shadow: 0 0 0 .18rem rgba(216, 77, 87, .10);
}

.auth-hint {
    color: var(--auth-muted);
    font-size: .72rem;
    line-height: 1.45;
}

.auth-validation {
    color: #c83d48;
    font-size: .73rem;
    line-height: 1.4;
}

.auth-validation:empty,
.validation-summary-valid {
    display: none;
}

.auth-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 20px;
    padding: 11px 13px;
    border: 1px solid;
    border-radius: 9px;
    font-size: .78rem;
    line-height: 1.5;
}

.auth-message svg {
    width: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.auth-message ul {
    margin: 0;
    padding-left: 17px;
}

.auth-message--success {
    border-color: rgba(0, 168, 143, .28);
    background: rgba(0, 198, 170, .08);
    color: #087562;
}

.auth-message--error {
    border-color: rgba(216, 77, 87, .25);
    background: rgba(216, 77, 87, .07);
    color: #a92f39;
}

.auth-message--info {
    border-color: rgba(0, 168, 143, .25);
    background: rgba(0, 198, 170, .08);
    color: #087562;
}

.auth-submit {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 2px;
    padding: 11px 16px;
    border: 1px solid var(--auth-brand);
    border-radius: 9px;
    background: var(--auth-brand);
    color: var(--wm-control-label, #04201c);
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.auth-submit svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform .15s ease;
}

.auth-submit:hover {
    background: var(--auth-brand-dark);
    box-shadow: 0 8px 18px -8px rgba(0, 198, 170, .55);
    transform: translateY(-1px);
}

.auth-submit:hover svg {
    transform: translateX(2px);
}

.auth-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .22rem rgba(0, 198, 170, .22);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-switch {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 23px;
    color: var(--auth-muted);
    font-size: .8rem;
}

.auth-switch a {
    color: var(--auth-brand-dark);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    color: var(--auth-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-switch a:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(0, 198, 170, .2);
    outline-offset: 2px;
}

html.dark-theme .auth-page {
    --auth-bg: var(--wm-bg, #0c171d);
    --auth-surface: var(--wm-surface, #13232c);
    --auth-border: var(--wm-line, rgba(225, 238, 241, .13));
    --auth-text: var(--wm-ink, #edf5f5);
    --auth-soft: var(--wm-muted, #a1b4bb);
    --auth-muted: var(--wm-muted, #a1b4bb);
    --auth-input-bg: var(--wm-surface-strong, #192d36);
    --auth-input-border: var(--wm-line, rgba(225, 238, 241, .13));
    --auth-placeholder: var(--wm-muted, #a1b4bb);
}

html.dark-theme .auth-card {
    box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .5);
}

html.dark-theme .auth-frame {
    box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .5);
}

html.dark-theme .auth-heading__icon {
    background: var(--wm-accent-soft, rgba(37, 180, 166, .13));
    color: var(--auth-brand);
}

html.dark-theme .auth-heading {
    background: transparent;
}

html.dark-theme .auth-heading h1,
html.dark-theme .auth-field label {
    color: var(--auth-text);
}

html.dark-theme .auth-heading p,
html.dark-theme .auth-hint,
html.dark-theme .auth-switch {
    color: var(--auth-soft);
}

html.dark-theme .auth-field label span,
html.dark-theme .auth-switch a {
    color: var(--auth-brand);
}

html.dark-theme .auth-message--success {
    color: #7be2d1;
}

html.dark-theme .auth-message--info {
    color: #7be2d1;
}

html.dark-theme .auth-message--error,
html.dark-theme .auth-validation {
    color: #ff9aa2;
}

html:not(.dark-theme) .auth-input input {
    color-scheme: light;
}

html:not(.dark-theme) .auth-input input:-webkit-autofill,
html:not(.dark-theme) .auth-input input:-webkit-autofill:hover {
    border-color: #d8dde3 !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1f2933 !important;
    caret-color: #1f2933;
    transition: none;
}

html:not(.dark-theme) .auth-input input:-webkit-autofill:focus {
    border-color: var(--auth-brand) !important;
    -webkit-box-shadow:
        0 0 0 1000px #ffffff inset,
        0 0 0 .2rem rgba(0, 198, 170, .18) !important;
    -webkit-text-fill-color: #1f2933 !important;
    caret-color: #1f2933;
    transition: none;
}

html.dark-theme .auth-input input {
    color-scheme: dark;
}

html.dark-theme .auth-input input:-webkit-autofill,
html.dark-theme .auth-input input:-webkit-autofill:hover {
    border-color: #444444 !important;
    -webkit-box-shadow: 0 0 0 1000px #2c2c2c inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    transition: none;
}

html.dark-theme .auth-input input:-webkit-autofill:focus {
    border-color: var(--auth-brand) !important;
    -webkit-box-shadow:
        0 0 0 1000px #2c2c2c inset,
        0 0 0 .2rem rgba(0, 198, 170, .18) !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    transition: none;
}

@media (max-width: 560px) {
    .auth-page {
        min-height: calc(100vh - 100px);
        align-items: start;
        padding: 24px 12px 36px;
    }

    .auth-card,
    .auth-card--register,
    .auth-frame {
        padding: 29px 22px 25px !important;
        border-radius: 12px;
    }

    .auth-heading {
        gap: 12px;
        margin-bottom: 24px;
    }

    .auth-heading__icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        border-radius: 10px;
    }

    .auth-heading h1 {
        font-size: 1.55rem;
    }

    .auth-heading p {
        font-size: .78rem;
    }

    .auth-switch {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page *,
    .auth-page *::before,
    .auth-page *::after {
        transition-duration: .01ms !important;
    }
}
