/* ============================================================
   auth.css — Login & Register sayfaları ortak stilleri
   ============================================================ */

/* ── LOGIN.HTML: LAYOUT ───────────────────────────────────── */
.auth-page {
  display: flex;
  align-items: stretch;
  min-height: calc(100dvh - 64px - 120px);
}

/* ── LEFT BRAND PANEL ─────────────────────────────────────── */
.auth-brand {
  flex: 1 1 420px;
  max-width: 480px;
  background: linear-gradient(160deg, #0b1628 0%, #091120 100%);
  border-right: 1px solid rgba(var(--primary-rgb), 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.14) 0%, transparent 65%);
  top: -160px; right: -160px;
  pointer-events: none;
}

.auth-brand::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.07) 0%, transparent 65%);
  bottom: -100px; left: -100px;
  pointer-events: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.brand-logo-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #000;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.35);
}

.brand-logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.brand-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.5px;
}

.brand-robot {
  font-size: 5rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  display: block;
  color: var(--primary);
  filter: drop-shadow(0 0 24px rgba(var(--primary-rgb), 0.4));
  animation: robotPulse 3s ease-in-out infinite;
}

@keyframes robotPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.4)); }
  50%       { filter: drop-shadow(0 0 36px rgba(var(--primary-rgb), 0.7)); }
}

.brand-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.brand-heading span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.brand-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.brand-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.brand-feature-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.brand-features strong {
  color: #cbd5e1;
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

/* ── RIGHT FORM PANEL ─────────────────────────────────────── */
.auth-form-panel {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  position: relative;
}

.auth-form-panel::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.06) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.auth-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--primary-rgb), 0.04);
  animation: cardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  opacity: 0.7;
}

.card-header {
  text-align: center;
  margin-bottom: 30px;
}

.card-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.card-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── ALERT ────────────────────────────────────────────────── */
.form-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 22px;
  animation: alertSlide 0.3s ease-out;
}

@keyframes alertSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-alert.error {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.3);
  color: #ff6b8a;
}

.form-alert.success {
  background: rgba(0, 255, 102, 0.07);
  border: 1px solid rgba(0, 255, 102, 0.25);
  color: var(--success);
}

/* ── FORM FIELDS ──────────────────────────────────────────── */
.field {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-bottom: 7px;
}

.field-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  color: #475569;
  pointer-events: none;
  transition: color 0.25s;
  z-index: 1;
}

.field-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  padding: 12px 14px 12px 40px;
  color: #fff;
  font-size: 0.93rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field-input::placeholder { color: #374151; }

.field-input:focus {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.03);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}

.field-wrap:focus-within .field-icon {
  color: var(--primary);
}

/* validation states */
.field-input.is-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1) !important;
}

.field-input.is-valid {
  border-color: rgba(0, 255, 102, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.06);
}

.field-feedback {
  display: none;
  font-size: 0.78rem;
  margin-top: 5px;
  padding-left: 2px;
}

.field-feedback.show { display: block; }
.field-feedback.error { color: var(--danger); }
.field-feedback.info  { color: var(--text-muted); }

/* password toggle */
.field-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.88rem;
  line-height: 1;
  transition: color 0.2s;
}

.field-eye:hover { color: var(--primary); }

.field-input.has-eye { padding-right: 40px; }

/* status icon inside field */
.field-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  display: none;
}

.field-status.show { display: block; }
.field-status.valid { color: var(--success); right: 38px; }
.field-status.invalid { color: var(--danger); right: 12px; }

/* ── OPTIONS ROW ──────────────────────────────────────────── */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.forgot-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.2s;
}

.forgot-link:hover { color: var(--accent); }

/* forgot password dropdown */
.forgot-box {
  display: none;
  background: rgba(var(--secondary-rgb), 0.06);
  border: 1px solid rgba(var(--secondary-rgb), 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  animation: alertSlide 0.25s ease-out;
  line-height: 1.6;
}

.forgot-box.show { display: block; }

.forgot-box a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.forgot-box a:hover { text-decoration: underline; }

/* ── SUBMIT BUTTON ────────────────────────────────────────── */
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #050d1a;
  border: none;
  border-radius: 9px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.22);
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.submit-btn:hover:not(:disabled)::after { transform: translateX(100%); }

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(var(--primary-rgb), 0.45);
}

.submit-btn:active:not(:disabled) { transform: translateY(0); }

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── DIVIDER & REGISTER ───────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  font-size: 0.78rem;
  color: #334155;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-register {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-register a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-register a:hover { color: var(--accent); }

/* ── REGISTER.HTML STYLES ─────────────────────────────────── */
.login-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  pointer-events: none;
}

.login-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 50px 44px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--primary-rgb), 0.05);
  position: relative;
  z-index: 1;
  animation: fadeSlideUp 0.5s ease-out forwards;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.login-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.15));
  border: 1px solid var(--dark-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.8rem;
  color: var(--primary);
}

.login-card h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}

.login-card .login-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 32px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.input-wrapper { position: relative; }

.input-wrapper i {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
  pointer-events: none;
}

.form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 13px 14px 13px 42px;
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.input-wrapper:focus-within i { color: var(--primary); }

.form-group input::placeholder { color: #475569; }

.login-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--dark-bg);
  border: none;
  border-radius: 8px;
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.login-submit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.login-submit-btn:hover::before { left: 100%; }

.login-submit-btn:hover {
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.5);
  transform: translateY(-2px);
}

.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0;
  color: #334155;
  font-size: 0.8rem;
}

.login-divider::before, .login-divider::after {
  content: ''; flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.login-register {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.login-register a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-register a:hover { color: var(--accent); }

.hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 5px;
  padding-left: 4px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-brand {
    display: none;
  }
  .auth-form-panel {
    padding: 36px 20px;
  }
  .auth-card {
    padding: 36px 28px;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px;
  }
  .card-header h1 { font-size: 1.3rem; }
}
