:root {
    color-scheme: light dark;
    --auth-page: #eef3f3;
    --auth-surface: #ffffff;
    --auth-text: #182426;
    --auth-soft: #5f7073;
    --auth-border: #cfdadc;
    --auth-accent: #087f83;
    --auth-accent-hover: #05676b;
    --auth-error: #be394a;
    --auth-error-soft: #fbe8eb;
    --auth-shadow: 0 24px 70px rgba(24, 45, 48, 0.14);
    --font-ui: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: var(--auth-page);
    color: var(--auth-text);
    font-family: var(--font-ui);
    letter-spacing: 0;
}

button,
input {
    font: inherit;
    letter-spacing: 0;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid var(--auth-accent);
    outline-offset: 2px;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(300px, 0.85fr) minmax(440px, 1.15fr);
}

.auth-context {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 5vw, 64px);
    background: #102225;
    color: #f2fbfa;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.auth-brand-mark {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(155, 129, 68, 0.54), 0 12px 28px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.auth-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
}

.auth-brand strong,
.auth-brand span {
    display: block;
}

.auth-brand strong {
    font-size: 16px;
}

.auth-brand span {
    margin-top: 3px;
    color: #9db4b2;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-context-copy {
    max-width: 480px;
    margin-block: 60px;
}

.auth-context-copy span {
    color: #65d4d6;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-context-copy h1 {
    max-width: 14ch;
    margin: 12px 0 14px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.08;
}

.auth-context-copy p {
    max-width: 44ch;
    margin: 0;
    color: #b6c8c6;
    font-size: 15px;
    line-height: 1.65;
}

.auth-context-footer {
    color: #79918f;
    font-size: 12px;
}

.auth-main {
    display: grid;
    place-items: center;
    padding: 28px;
}

.auth-panel {
    width: min(100%, 440px);
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: var(--auth-surface);
    box-shadow: var(--auth-shadow);
}

.auth-panel-heading span {
    color: var(--auth-accent);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-panel-heading h2 {
    margin: 8px 0 8px;
    font-size: 27px;
}

.auth-panel-heading p {
    margin: 0 0 24px;
    color: var(--auth-soft);
    line-height: 1.55;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
}

.auth-field input {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--auth-border);
    border-radius: 7px;
    background: var(--auth-surface);
    color: var(--auth-text);
}

.auth-field input:focus {
    border-color: var(--auth-accent);
}

.auth-submit {
    min-height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 7px;
    background: var(--auth-accent);
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
}

.auth-submit:hover {
    background: var(--auth-accent-hover);
}

.auth-flash {
    margin-bottom: 16px;
    padding: 11px 13px;
    border: 1px solid var(--auth-border);
    border-radius: 7px;
}

.auth-flash.error {
    border-color: #e5aeb6;
    background: var(--auth-error-soft);
    color: var(--auth-error);
}

.auth-setup-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--auth-soft);
    font-size: 12px;
    font-weight: 700;
}

.auth-setup-link:hover {
    color: var(--auth-accent);
}

/* İki adımlı doğrulama ekranı (20.09.2026) */
.auth-link-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.auth-link-button:hover {
    color: var(--auth-accent);
}

@media (prefers-color-scheme: dark) {
    :root {
        --auth-page: #0c1517;
        --auth-surface: #152124;
        --auth-text: #edf5f4;
        --auth-soft: #9fb2b0;
        --auth-border: #2c4144;
        --auth-accent: #4fc6c8;
        --auth-accent-hover: #70d7d9;
        --auth-error: #ff7b88;
        --auth-error-soft: #432129;
        --auth-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    }
}

@media (max-width: 820px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-context {
        min-height: 160px;
        padding: 22px;
    }

    .auth-context-copy {
        margin: 28px 0 0;
    }

    .auth-context-copy h1 {
        max-width: none;
        margin-block: 8px;
        font-size: 26px;
    }

    .auth-context-copy p,
    .auth-context-footer {
        display: none;
    }

    .auth-main {
        align-items: start;
        padding: 20px 14px 32px;
    }

    .auth-panel {
        box-shadow: none;
    }
}

/* Destek iletişim satırı (24.09.2026) */
.auth-contact {
    margin: 10px 0 0;
    color: var(--auth-soft);
    font-size: 13px;
    text-align: center;
}
.auth-contact a { color: inherit; font-weight: 700; text-decoration: none; }
.auth-contact a:hover { text-decoration: underline; }

/* Üye ikinci adımı: "bu cihazı hatırla" (24.09.2026) */
.auth-check {
    display: flex; align-items: center; gap: 8px;
    color: var(--auth-soft); font-size: 13px;
}
.auth-check input { width: 16px; height: 16px; accent-color: var(--auth-accent, #087f83); }

.auth-disclaimer { margin-top: 6px; line-height: 1.6; }
