/* Giriş / kayıt — landing ile uyumlu koyu tema */
:root {
    --auth-bg: hsl(222 47% 6%);
    --auth-surface: hsl(222 35% 12%);
    --auth-border: hsl(222 25% 22%);
    --auth-text: hsl(210 25% 96%);
    --auth-muted: hsl(215 14% 62%);
    --auth-accent: hsl(262 78% 58%);
    --auth-accent-hover: hsl(262 70% 52%);
    --auth-accent-soft: hsl(262 40% 24% / 0.45);
    --auth-danger-bg: hsl(0 45% 18%);
    --auth-danger-text: hsl(0 86% 88%);
    --auth-success-bg: hsl(152 35% 16%);
    --auth-success-text: hsl(152 45% 82%);
    --auth-radius: 14px;
    --auth-shadow: 0 24px 48px hsl(0 0% 0% / 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text);
}

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

.auth-form {
    width: 100%;
    max-width: 420px;
    margin: 0;
}

.auth-card {
    width: 100%;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: var(--auth-shadow);
    padding: 28px 26px 26px;
}

.auth-card .login-header {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 20px;
    text-align: center;
    letter-spacing: -0.02em;
    color: var(--auth-text);
}

.auth-card .fields {
    text-align: left;
}

.auth-card footer {
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
}

.auth-card footer a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-card footer a:hover {
    text-decoration: underline;
}

.auth-card footer a:focus-visible {
    outline: 2px solid var(--auth-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 1rem;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: hsl(222 40% 8%);
    color: var(--auth-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input::placeholder {
    color: hsl(215 12% 45%);
}

.input:hover {
    border-color: hsl(222 20% 35%);
}

.input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px var(--auth-accent-soft);
}

.button {
    width: 100%;
    margin-top: 6px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--auth-accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button:hover {
    background: var(--auth-accent-hover);
}

.button:focus-visible {
    outline: 2px solid var(--auth-accent);
    outline-offset: 2px;
}

.error-message,
.message.error {
    margin: 0 0 14px;
    padding: 10px 12px;
    font-size: 0.9rem;
    text-align: left;
    color: var(--auth-danger-text);
    background: var(--auth-danger-bg);
    border: 1px solid hsl(0 40% 28%);
    border-radius: 10px;
}

.message.success {
    margin: 0 0 14px;
    padding: 10px 12px;
    font-size: 0.9rem;
    text-align: left;
    color: var(--auth-success-text);
    background: var(--auth-success-bg);
    border: 1px solid hsl(152 30% 26%);
    border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .input {
        transition: none !important;
    }
}
