/* Üye girişi / kayıt — split layout */

.auth-page {
  padding: 28px 0 56px;
  background: linear-gradient(180deg, var(--bg) 0%, oklch(96.5% 0.004 250) 100%);
  min-height: calc(100vh - 200px);
}

.auth-shell {
  max-width: 980px;
}

.auth-head {
  text-align: center;
  margin-bottom: 28px;
}

.auth-head-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--ink);
}

.auth-head-sub {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.auth-panel {
  padding: 32px 28px 36px;
  min-width: 0;
}

.auth-panel--register {
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.auth-panel--login {
  background: oklch(98.8% 0.003 250);
}

.auth-panel-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  color: var(--ink);
}

.auth-panel-lead {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.auth-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px oklch(48% 0.16 255 / 0.12);
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
}

.auth-check input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.auth-check a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-alert {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.auth-alert--error {
  background: oklch(96% 0.04 25);
  color: var(--accent-ink);
  border: 1px solid oklch(90% 0.06 25);
}

.auth-alert--success {
  background: oklch(96% 0.04 152);
  color: oklch(38% 0.12 152);
  border: 1px solid oklch(88% 0.08 152);
}

.auth-submit {
  height: 46px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .12s, opacity .12s, background .12s;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-submit--register {
  background: var(--ink);
  color: #fff;
}

.auth-submit--register:hover:not(:disabled) {
  background: oklch(20% 0.018 265);
}

.auth-submit--login {
  background: var(--accent);
  color: #fff;
}

.auth-submit--login:hover:not(:disabled) {
  background: var(--accent-ink);
}

.auth-social {
  margin-top: 22px;
}

.auth-social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-social-divider::before,
.auth-social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-social-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .12s;
}

.auth-social-btn:hover {
  border-color: var(--line-2);
  background: var(--bg);
  transform: translateY(-1px);
}

.auth-social-btn--twitter {
  color: var(--ink);
}

.auth-oauth-wait {
  text-align: center;
  padding: 48px 0;
  font-size: 16px;
  color: var(--ink-2);
}

@media (max-width: 820px) {
  .auth-split {
    grid-template-columns: 1fr;
  }
  .auth-panel--register {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .auth-panel {
    padding: 24px 20px 28px;
  }
}

@media (max-width: 720px) {
  .auth-page {
    padding: 16px 0 40px;
  }
  .auth-head {
    margin-bottom: 20px;
    text-align: left;
  }
  .auth-split {
    border-radius: 12px;
  }
}
