﻿/* ===========================
   CİHAZ SEÇİM EKRANI
=========================== */
.device-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124,58,237,.2) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(6,182,212,.12) 0%, transparent 55%),
    var(--bg);
  z-index: 200;
  padding: 1rem;
}

.device-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
}

.device-logo {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: .75rem;
}

.device-desc {
  color: var(--muted2);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.device-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.device-btn {
  flex: 1;
  min-width: 130px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem 1rem;
  background: var(--bg3);
  border: 2px solid var(--border2);
  border-radius: 16px;
  cursor: pointer;
  transition: all .22s;
  font-family: 'Rajdhani', sans-serif;
}
.device-btn:hover { transform: translateY(-4px); }

.desktop-btn:hover { border-color: var(--primary2); box-shadow: 0 8px 24px rgba(124,58,237,.25); }
.mobile-btn:hover  { border-color: var(--cyan);     box-shadow: 0 8px 24px rgba(6,182,212,.2); }

.device-icon  { font-size: 2.8rem; }
.device-label {
  font-family: 'Orbitron', sans-serif;
  font-size: .9rem; font-weight: 700; color: var(--text);
}
.device-hint  { font-size: .75rem; color: var(--muted2); }

#auth-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

/* ===========================
   AUTH PAGE
=========================== */
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(124,58,237,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(6,182,212,.12)  0%, transparent 55%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

/* ── Arka plan partikülleri ── */
.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.auth-particle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: var(--primary2);
  animation: auth-rise linear infinite;
}
@keyframes auth-rise {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .4; }
  100% { transform: translateY(-110vh) scale(.4); opacity: 0; }
}

/* ── Logo ── */
.auth-logo {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: 4px;
  margin-bottom: 2rem;
  cursor: pointer;
  z-index: 1;
  user-select: none;
  text-align: center;
}

/* ── Kart ── */
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 25px 60px rgba(0,0,0,.6),
    0 0 60px rgba(124,58,237,.08);
}

/* ── Sekmeler ── */
.auth-tabs {
  display: flex;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: .9rem;
  background: none;
  border: none;
  color: var(--muted2);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.auth-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transition: all .25s;
  border-radius: 2px 2px 0 0;
}
.auth-tab.active {
  color: var(--text);
}
.auth-tab.active::after {
  left: 10%; right: 10%;
}

/* ── Form ── */
.auth-form {
  padding: 2rem;
}

.auth-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .35rem;
  color: var(--text);
}

.auth-sub {
  color: var(--muted2);
  font-size: .9rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.form-field {
  margin-bottom: 1.1rem;
}
.form-field label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted2);
  margin-bottom: .4rem;
  letter-spacing: .5px;
}
.field-hint {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-top: .3rem;
}

/* şifre toggle */
.pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  transition: color .2s;
  font-size: .95rem;
}
.pass-toggle:hover { color: var(--text); }

/* hata kutusu */
.form-error {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  margin-top: .25rem;
}

/* alt metin */
.auth-switch {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--muted2);
  font-size: .9rem;
}
.auth-switch a {
  color: var(--primary2);
  font-weight: 700;
  text-decoration: none;
  transition: color .2s;
}
.auth-switch a:hover { color: var(--cyan); }

/* footer notu */
.auth-footer-note {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: .8rem;
  margin-top: 1.5rem;
  text-align: center;
}

/* ===========================
   MOBİL DÜZELTMELER — AUTH
=========================== */
@media (max-width: 480px) {
  .auth-logo    { font-size: 2rem; letter-spacing: 2px; }
  .auth-card    { border-radius: 16px; }
  .auth-form    { padding: 1.5rem 1.25rem; }
  .auth-title   { font-size: 1.1rem; }
  .auth-sub     { font-size: .82rem; margin-bottom: 1.25rem; }
  .device-card  { padding: 2rem 1.25rem; }
  .device-options { gap: .75rem; }
  .device-btn   { min-width: 110px; padding: 1.25rem .75rem; }
  .device-icon  { font-size: 2.2rem; }
}
