
/* ══════════════════════════════════════
   AUTH SAYFASI — GENEL
══════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--green);
}

.auth-bg-circle.c1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -100px;
}

.auth-bg-circle.c2 {
  width: 350px;
  height: 350px;
  bottom: -80px;
  right: -60px;
  opacity: 0.04;
}

.auth-bg-circle.c3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 60%;
  opacity: 0.03;
}

/* ══════════════════════════════════════
   AUTH KART
══════════════════════════════════════ */
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  animation: authFadeIn .35s ease;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   AUTH HEADER
══════════════════════════════════════ */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  font-size: 42px;
  margin-bottom: 14px;
  line-height: 1;
  display: block;
}

.auth-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ══════════════════════════════════════
   SOSYAL GİRİŞ BUTONLARI
══════════════════════════════════════ */
.social-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.social-btn-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--white);
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  text-decoration: none;
}

.social-btn-large:hover {
  background: var(--bg);
  border-color: var(--border-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.social-btn-large.github {
  background: #24292e;
  color: #fff;
  border-color: #24292e;
}

.social-btn-large.github:hover {
  background: #1a1e22;
  border-color: #1a1e22;
}

/* ══════════════════════════════════════
   AYIRICI
══════════════════════════════════════ */
.auth-divider {
  text-align: center;
  position: relative;
  margin: 24px 0;
  color: var(--text-3);
  font-size: 12px;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  background: var(--white);
  padding: 0 14px;
  position: relative;
}

/* ══════════════════════════════════════
   FORM — GENEL
══════════════════════════════════════ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* ══════════════════════════════════════
   INPUT ALANLARI
══════════════════════════════════════ */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-family: 'DM Sans', sans-serif;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, .1);
  background: var(--white);
}

.auth-form input::placeholder {
  color: var(--text-3);
}

/* ══════════════════════════════════════
   KULLANICI ADI INPUT
══════════════════════════════════════ */
.username-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.username-at {
  position: absolute;
  left: 14px;
  font-size: 14px;
  color: var(--text-3);
  pointer-events: none;
  z-index: 1;
  font-weight: 500;
  user-select: none;
}

.username-input-wrap input {
  padding-left: 30px !important;
  padding-right: 40px !important;
}

.username-status {
  position: absolute;
  right: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: opacity .2s;
}

.username-hint {
  font-size: 12px;
  min-height: 16px;
  transition: color .2s;
}

/* ══════════════════════════════════════
   ŞİFRE INPUT
══════════════════════════════════════ */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  padding-right: 44px !important;
}

.pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .2s;
  border-radius: 4px;
}

.pw-toggle:hover {
  color: var(--text);
}

/* ══════════════════════════════════════
   ŞİFRE GÜÇ GÖSTERGESİ
══════════════════════════════════════ */
.pw-strength {
  min-height: 24px;
}

.pw-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 5px;
}

.pw-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background .3s;
}

.pw-label {
  font-size: 12px;
  font-weight: 500;
}

.pw-match {
  font-size: 12px;
  min-height: 16px;
  font-weight: 500;
}

/* ══════════════════════════════════════
   HATA KUTUSU
══════════════════════════════════════ */
.form-error {
  font-size: 12px;
  color: #dc2626;
  font-weight: 500;
}

.form-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 13px;
  color: #dc2626;
  line-height: 1.6;
}

[data-theme="dark"] .form-error-box {
  background: rgba(220, 38, 38, .08);
  border-color: rgba(220, 38, 38, .3);
  color: #fca5a5;
}

/* ══════════════════════════════════════
   FORM SEÇENEKLERİ (beni hatırla vs)
══════════════════════════════════════ */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.forgot-link {
  color: var(--green);
  font-size: 13px;
  transition: color .2s;
}

.forgot-link:hover {
  color: var(--green-dk);
}

/* ══════════════════════════════════════
   GÖNDER BUTONU
══════════════════════════════════════ */
.btn-auth {
  width: 100%;
  padding: 13px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  font-family: 'DM Sans', sans-serif;
  margin-top: 4px;
}

.btn-auth:hover {
  background: var(--green-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(29, 158, 117, .35);
}

.btn-auth:active {
  transform: scale(0.99);
}

/* ══════════════════════════════════════
   ALT FOOTER
══════════════════════════════════════ */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-3);
}

.auth-footer a {
  color: var(--green);
  font-weight: 600;
  transition: color .2s;
}

.auth-footer a:hover {
  color: var(--green-dk);
}

/* ══════════════════════════════════════
   RESPONSİVE
══════════════════════════════════════ */
@media (max-width: 520px) {
  .auth-card {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}