/* ================================================================
   EĞİTİM PATİKASI — AUTH SAYFALAR (Login / Register)
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --red:        #840404;
  --red-deep:   #620303;
  --red-light:  #fdf0f0;
  --black:      #0a0a0a;
  --gray-text:  #6b6b6b;
  --gray-1:     #f8f8f8;
  --gray-3:     #e0e0e0;
  --white:      #ffffff;
  --shadow-red: 0 8px 32px rgba(132,4,4,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--gray-1);
  color: var(--black);
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── Auth Container ────────────────────────────────────────────── */
.auth-page {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px;
  min-height: 100vh;
  position: relative;
}

/* Background decoration */
.auth-page::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(132,4,4,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Logo area */
.auth-logo {
  margin-bottom: 32px; text-align: center;
}
.auth-logo a {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
}
.auth-logo img {
  height: 44px; width: auto;
}

/* Card */
.auth-card {
  background: var(--white);
  border: 1.5px solid #e8e8e8;
  border-radius: 20px;
  padding: 40px 44px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
@media (max-width: 480px) {
  .auth-card { padding: 28px 22px; }
}

.auth-card h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-card .auth-sub {
  font-size: 14.5px; color: var(--gray-text); margin-bottom: 28px;
}

/* Form fields */
.a-field { margin-bottom: 18px; }
.a-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--black); margin-bottom: 7px;
}
.a-field input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--gray-3); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--black);
  background: var(--white);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.a-field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(132,4,4,0.08);
}
.a-field .a-error {
  display: block; font-size: 12px; color: var(--red); margin-top: 5px;
}

/* Row fields */
.a-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 400px) { .a-row { grid-template-columns: 1fr; } }

/* Alert */
.a-alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  margin-bottom: 20px;
}
.a-alert--error { background: var(--red-light); border: 1px solid #fca5a5; color: var(--red); }
.a-alert--success { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }

/* Submit button */
.a-submit {
  width: 100%; padding: 14px;
  background: var(--red); color: #fff;
  border: none; border-radius: 10px;
  font-family: inherit; font-size: 15.5px; font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-red);
  margin-top: 6px;
}
.a-submit:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(132,4,4,0.30);
}
.a-submit:active { transform: translateY(0); }

/* Bottom link */
.a-bottom {
  text-align: center; margin-top: 22px;
  font-size: 14px; color: var(--gray-text);
}
.a-bottom a { color: var(--red); font-weight: 600; }
.a-bottom a:hover { text-decoration: underline; }

/* Divider */
.a-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0;
}
.a-divider::before, .a-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-3);
}
.a-divider span { font-size: 12px; color: var(--gray-text); white-space: nowrap; }
