/**
 * Shared auth/login surface — panel + öğrenci
 */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font, Manrope, "Avenir Next", system-ui, sans-serif);
  color: var(--ink, #0f1c1a);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  -webkit-font-smoothing: antialiased;
}
.login-brand {
  position: relative; overflow: hidden; color: #e8f2ef;
  background: linear-gradient(165deg, #0f2a27 0%, #0c221f 55%, #101820 100%);
  padding: clamp(28px, 5vw, 48px);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh;
}
.login-brand::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.4), transparent 80%);
  pointer-events: none;
}
.brand-top, .brand-copy { position: relative; z-index: 1; }
.brand-top { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand, #1f5c56);
  color: #fff; font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-top strong { display: block; color: #fff; font-size: 1.05rem; letter-spacing: -.02em; }
.brand-top small { color: rgba(232,242,239,.55); font-weight: 600; }
.brand-copy h2 {
  margin: 0 0 14px; font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15; letter-spacing: -.03em; color: #fff; max-width: 14ch;
}
.brand-copy p {
  margin: 0; max-width: 36ch; color: rgba(232,242,239,.68);
  font-size: 1rem; line-height: 1.55; font-weight: 500;
}
.brand-credit {
  position: relative; z-index: 1; margin-top: 28px;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: .82rem; color: rgba(232,242,239,.5);
}
.brand-credit a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 700; }
.brand-credit a:hover { color: #fff; text-decoration: underline; }
.login-panel {
  display: grid; place-items: center; padding: 28px 20px;
  background: var(--bg, #f0f4f2);
}
.login-card {
  width: min(420px, 100%); background: #fff; border: 1px solid var(--line, #d5e0dc);
  border-radius: 16px; padding: 28px 26px 26px; box-shadow: var(--shadow-sm, 0 1px 2px rgba(15,42,39,.05));
}
.login-card h1 { margin: 0 0 6px; font-size: 1.45rem; letter-spacing: -.025em; }
.login-card .lead { margin: 0 0 22px; color: var(--muted, #5a6f6a); font-weight: 550; }
.login-card label {
  display: block; margin: 0 0 6px; font-size: .72rem; font-weight: 750;
  letter-spacing: .08em; text-transform: uppercase; color: #6a7c77;
}
.login-card input[type="email"],
.login-card input[type="password"],
.login-card input[type="text"] {
  width: 100%; margin: 0 0 14px; padding: 13px 14px; border: 1px solid var(--line, #d5e0dc);
  border-radius: 10px; font: inherit; font-weight: 600; background: #fbfcfc; color: var(--ink, #0f1c1a);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.login-card input:focus {
  border-color: color-mix(in srgb, var(--brand, #1f5c56) 45%, #d5e0dc);
  box-shadow: var(--focus, 0 0 0 3px rgba(31,92,86,.18)); background: #fff;
}
.login-card .btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  margin-top: 6px; padding: 14px 18px; border: 0; border-radius: 10px;
  background: var(--brand-dark, #0f2a27); color: #fff; font: inherit; font-weight: 750;
  cursor: pointer; transition: background .15s ease;
}
.login-card .btn:hover { background: var(--brand, #1f5c56); }
.flash-error {
  margin: 0 0 14px; padding: 11px 12px; border-radius: 10px;
  background: #fdecea; color: #b42318; font-weight: 650; font-size: .92rem;
}
.login-foot { margin-top: 18px; text-align: center; color: #7a8b86; font-size: .82rem; font-weight: 600; }
.login-foot a { color: var(--brand-dark, #0f2a27); text-decoration: none; font-weight: 750; }
.login-foot a:hover { color: var(--accent, #c45c26); }
@media (max-width: 900px) {
  body { grid-template-columns: 1fr; }
  .login-brand { min-height: auto; padding: 22px 20px 28px; }
  .brand-copy h2 { max-width: none; font-size: 1.5rem; }
  .login-panel { padding: 8px 16px 36px; align-items: start; }
}

.flash-ok {
  margin: 0 0 14px; padding: 11px 12px; border-radius: 10px;
  background: #dcfce7; color: #166534; font-weight: 650; font-size: .92rem;
}
.steps {
  display: flex; gap: 8px; margin: 0 0 18px;
}
.steps span {
  flex: 1; text-align: center; padding: 8px 6px; border-radius: 999px;
  font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
  background: #f3f7f5; color: #7a8b86; border: 1px solid var(--line, #d5e0dc);
}
.steps span.is-on {
  background: var(--brand-dark, #0f2a27); color: #fff;
  border-color: var(--brand-dark, #0f2a27);
}
