/* ============================================
   QR-MENU.NET - Auth (Giriş/Kayıt) Stilleri
   Renkler: #1d1f38, #ffe11e, #e3f0f6, #90582f
   ============================================ */

/* === Değişkenler === */
:root {
  --primary: #1d1f38;
  --accent: #ffe11e;
  --light: #e3f0f6;
  --brown: #90582f;
  --white: #ffffff;
  --dark-text: #1d1f38;
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 4px 6px rgba(29, 31, 56, 0.15);
  --shadow-lg: 0 20px 60px rgba(29, 31, 56, 0.25);
  --shadow-xl: 0 30px 80px rgba(29, 31, 56, 0.3);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--primary);
  color: var(--dark-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* === Arka Plan Parçacıkları === */
.auth-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.12; }
  90% { opacity: 0.12; }
  100% { transform: translate(var(--dx, 100px), var(--dy, -800px)) rotate(360deg); opacity: 0; }
}

/* === Ana Wrapper === */
.auth-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* === Sol Panel (Bilgi) === */
.auth-info {
  flex: 1;
  background: linear-gradient(135deg, var(--primary) 0%, #2a2d50 50%, #1a1c33 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* Logo */
.auth-logo {
  position: absolute;
  top: 32px;
  left: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  z-index: 10;
  transition: var(--transition);
}

.auth-logo:hover {
  transform: scale(1.05);
}

.auth-logo span {
  color: var(--accent);
}

.auth-logo-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 8px rgba(255, 225, 30, 0.3));
}

.auth-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 225, 30, 0.3));
}

/* Info Content */
.info-content {
  max-width: 480px;
}

.info-content.hidden {
  display: none;
}

/* İlk sayfa yüklemesinde sol panel animasyonu */
.info-content.initial-load {
  animation: infoSlideIn 0.6s ease-out both;
}

/* Tab geçişinde sadece fade (opacity) animasyonu */
.info-content.fade-out {
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.info-content.fade-in {
  animation: infoFadeOnly 0.4s ease-out both;
}

@keyframes infoSlideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes infoFadeOnly {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Badge */
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255, 225, 30, 0.12);
  border: 1px solid rgba(255, 225, 30, 0.25);
  border-radius: 50px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.info-badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

/* Başlık */
.info-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.info-title .highlight {
  color: var(--accent);
  position: relative;
}

.info-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.4;
}

/* Açıklama */
.info-desc {
  font-size: 1.1rem;
  color: rgba(227, 240, 246, 0.75);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Özellik Listesi */
.info-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.info-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.info-feature:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(6px);
}

.info-feature-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-feature strong {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.info-feature span {
  color: rgba(227, 240, 246, 0.6);
  font-size: 0.85rem;
}

/* İstatistikler */
.info-stats {
  display: flex;
  gap: 24px;
}

.info-stat {
  text-align: center;
  padding: 16px 20px;
  background: rgba(255, 225, 30, 0.08);
  border: 1px solid rgba(255, 225, 30, 0.15);
  border-radius: var(--radius-sm);
  flex: 1;
}

.info-stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
}

.info-stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(227, 240, 246, 0.5);
  font-weight: 600;
  margin-top: 2px;
}

/* Güven Rozetleri */
.info-trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.info-trust-item {
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 50px;
  color: #86efac;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Dekorasyon */
.info-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
}

.deco-circle-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -120px;
  right: -120px;
  animation: decoFloat 20s ease-in-out infinite;
}

.deco-circle-2 {
  width: 300px;
  height: 300px;
  background: var(--light);
  bottom: -80px;
  left: -80px;
  animation: decoFloat 25s ease-in-out infinite reverse;
}

.deco-circle-3 {
  width: 180px;
  height: 180px;
  background: var(--brown);
  top: 50%;
  right: 20%;
  animation: decoFloat 18s ease-in-out infinite 3s;
}

@keyframes decoFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -20px) scale(1.05); }
  50% { transform: translate(-15px, 15px) scale(0.95); }
  75% { transform: translate(10px, 25px) scale(1.03); }
}

/* === Sağ Panel (Form) === */
.auth-form-panel {
  flex: 1;
  max-width: 560px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
  position: relative;
  overflow-y: auto;
}

/* === Tab Geçişi === */
.auth-tabs {
  display: flex;
  background: var(--light);
  border-radius: var(--radius);
  padding: 5px;
  margin-bottom: 32px;
  position: relative;
}

.auth-tab {
  flex: 1;
  padding: 12px 24px;
  background: transparent;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  z-index: 2;
  opacity: 0.5;
}

.auth-tab.active {
  color: var(--primary);
  opacity: 1;
}

.auth-tab-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(29, 31, 56, 0.1);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.auth-tab-indicator.right {
  transform: translateX(100%);
}

/* === Form Stilleri === */
.auth-form {
  transition: var(--transition-slow);
  animation: formSlideUp 0.4s ease-out;
}

.auth-form.hidden {
  display: none;
}

@keyframes formSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

/* === Input Grupları === */
.input-row {
  display: flex;
  gap: 12px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
  flex: 1;
}

.input-group .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  z-index: 2;
  pointer-events: none;
  transition: var(--transition);
}

.input-group input {
  width: 100%;
  padding: 16px 16px 16px 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--light);
  border: 2.5px solid transparent;
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.input-group label {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  font-weight: 600;
  color: #9ca3af;
  pointer-events: none;
  transition: var(--transition);
}

/* Float label */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -10px;
  left: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--white);
  padding: 0 6px;
}

.input-group input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 225, 30, 0.15);
}

.input-group input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.input-group input.success {
  border-color: var(--success);
}

.input-line {
  display: none;
}

/* Toggle Password */
.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  opacity: 0.5;
  transition: var(--transition);
  z-index: 2;
}

.toggle-password:hover {
  opacity: 1;
}

.toggle-password .eye-icon {
  font-size: 1rem;
}

/* === Şifre Güç Göstergesi === */
.password-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -12px;
  margin-bottom: 16px;
  padding: 0 4px;
  opacity: 0;
  transition: var(--transition);
}

.password-strength.visible {
  opacity: 1;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: var(--transition);
}

.strength-fill.weak { width: 33%; background: var(--error); }
.strength-fill.medium { width: 66%; background: var(--warning); }
.strength-fill.strong { width: 100%; background: var(--success); }

.strength-text {
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 50px;
  text-align: right;
}

.strength-text.weak { color: var(--error); }
.strength-text.medium { color: var(--warning); }
.strength-text.strong { color: var(--success); }

/* === Form Seçenekleri === */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

/* Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2.5px solid #d1d5db;
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-wrapper input:checked + .checkbox-custom {
  background: var(--accent);
  border-color: #ccb400;
}

.checkbox-wrapper input:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--primary);
}

.terms-check {
  margin-bottom: 20px;
}

.terms-check a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
}

.terms-check a:hover {
  color: var(--brown);
}

/* reCAPTCHA Wrapper */
.recaptcha-wrapper {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  min-height: 78px;
}
.recaptcha-wrapper .g-recaptcha {
  transform-origin: center center;
}
@media (max-width: 380px) {
  .recaptcha-wrapper .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center center;
  }
}

/* Forgot Link */
.forgot-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
}

.forgot-link:hover {
  color: var(--brown);
}

/* === Butonlar (Duolingo Tarzı) === */
.btn-auth {
  width: 100%;
  padding: 15px 24px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-auth-primary {
  background: var(--accent);
  color: var(--primary);
  border: 2.5px solid #e6cb00;
  border-bottom: 5px solid #ccb400;
  box-shadow: 0 4px 0 #b8a200;
}

.btn-auth-primary:hover:not(:disabled) {
  background: #fff34d;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #b8a200;
}

.btn-auth-primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #b8a200;
  border-bottom-width: 2.5px;
}

.btn-auth-google {
  background: var(--white);
  color: var(--dark-text);
  border: 2.5px solid #e5e7eb;
  border-bottom: 4px solid #d1d5db;
  box-shadow: 0 2px 0 #c5c8cc;
}

.btn-auth-google:hover:not(:disabled) {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #c5c8cc;
}

.btn-auth-google:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 0 0 #c5c8cc;
  border-bottom-width: 2.5px;
}

/* Loader */
.btn-loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(29, 31, 56, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinLoader 0.6s linear infinite;
}

.btn-loader.hidden {
  display: none;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

/* === Ayırıcı === */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-divider span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === Şifremi Unuttum === */
.forgot-header {
  margin-bottom: 12px;
}

.back-btn {
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  padding: 8px 0;
  transition: var(--transition);
}

.back-btn:hover {
  color: var(--brown);
}

.forgot-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* === Toast Bildirim === */
.auth-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + 40px));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  max-width: 400px;
}

.auth-toast.visible {
  transform: translateX(0);
}

.auth-toast.success {
  background: #16a34a;
}

.auth-toast.error {
  background: #dc2626;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .auth-info {
    padding: 40px 40px;
  }
  .auth-logo {
    left: 40px;
  }
  .auth-form-panel {
    padding: 40px 40px;
    max-width: 500px;
  }
}

@media (max-width: 900px) {
  .auth-wrapper {
    flex-direction: column;
  }

  .auth-info {
    min-height: auto;
    padding: 80px 32px 40px;
    order: 1;
  }

  .auth-logo {
    left: 32px;
    top: 24px;
  }

  .info-title {
    font-size: 1.8rem;
  }

  .info-features {
    display: none;
  }

  .info-stats {
    gap: 12px;
  }

  .info-trust {
    display: none;
  }

  .auth-form-panel {
    order: 2;
    max-width: 100%;
    padding: 32px;
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: -16px;
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 600px) {
  .auth-info {
    padding: 72px 24px 32px;
  }

  .auth-logo {
    left: 24px;
    font-size: 1.3rem;
  }

  .auth-form-panel {
    padding: 28px 20px;
  }

  .auth-tabs {
    margin-bottom: 24px;
  }

  .form-title {
    font-size: 1.3rem;
  }

  .input-row {
    flex-direction: column;
    gap: 0;
  }

  .info-stats {
    gap: 8px;
  }

  .info-stat {
    padding: 12px 10px;
  }

  .info-stat-number {
    font-size: 1.1rem;
  }

  .info-desc {
    font-size: 0.95rem;
  }

  .auth-toast {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 24px;
    max-width: none;
    transform: translateY(calc(100% + 40px));
  }

  .auth-toast.visible {
    transform: translateY(0);
  }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Focus Visible === */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === Selection === */
::selection {
  background: var(--accent);
  color: var(--primary);
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2a2d50; }
html { scrollbar-width: thin; scrollbar-color: var(--primary) var(--light); }
