/* =========================================================
   Easy QR — Ortak Tasarım Dili
   Bu dosya tüm public ve app sayfalarında import edilir.
   ========================================================= */

:root {
  /* Renkler — ana sayfa ile birebir uyumlu */
  --red: #A4161A;
  --red-deep: #6A040F;
  --red-soft: #F5DADC;
  --red-tint: #FBEEEF;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-muted: #8A8A8A;
  --line: #EEEEEE;
  --bg: #FFFFFF;
  --cream: #FAF8F6;
  --success: #2d7a3a;
  --success-soft: #d4f1c5;
  --danger: #C1121F;
  --danger-soft: #FEE5E5;
  --warning: #b45309;
  --warning-soft: #fef3c7;

  /* Tipografi */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 48px -12px rgba(0,0,0,0.15);
  --shadow-red: 0 12px 32px rgba(164, 22, 26, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== Logo (gerçek SVG dosyaları) ===== */
.eq-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.eq-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.eq-logo.eq-logo-sm img { height: 36px; }
.eq-logo.eq-logo-lg img { height: 56px; }

/* ===== Form ===== */
.eq-field {
  margin-bottom: 18px;
}
.eq-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.eq-field .hint {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 6px;
}
.eq-input,
.eq-select,
.eq-textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.eq-input:focus,
.eq-select:focus,
.eq-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-tint);
}
.eq-input::placeholder { color: var(--ink-muted); }
.eq-input.error { border-color: var(--danger); }

.eq-input-group {
  position: relative;
}
.eq-input-group .icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  display: flex;
  pointer-events: none;
}
.eq-input-group .icon-right {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color .2s;
}
.eq-input-group .icon-right:hover { color: var(--red); }
.eq-input-group .with-icon-left { padding-left: 44px; }

/* ===== Buttons ===== */
.eq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
  white-space: nowrap;
}
.eq-btn-red {
  background: var(--red);
  color: white;
}
.eq-btn-red:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
}
.eq-btn-red:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.eq-btn-ink {
  background: var(--ink);
  color: white;
}
.eq-btn-ink:hover { background: #000; }
.eq-btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.eq-btn-outline:hover {
  background: var(--ink);
  color: white;
}
.eq-btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}
.eq-btn-ghost:hover { color: var(--red); }
.eq-btn-block { width: 100%; padding: 15px 24px; font-size: 15px; }

/* ===== Alerts ===== */
.eq-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.eq-alert.error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(193, 18, 31, 0.2);
}
.eq-alert.success {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(45, 122, 58, 0.2);
}
.eq-alert.info {
  background: var(--red-tint);
  color: var(--red-deep);
  border: 1px solid rgba(164, 22, 26, 0.15);
}
.eq-alert.warning {
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid rgba(180, 83, 9, 0.2);
}
.eq-alert.hidden { display: none; }

/* ===== Auth Layout (login, register, forgot, reset) ===== */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: var(--cream);
  color: var(--ink);
  padding: 32px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  min-height: 100vh;
}
.auth-left-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
  margin: auto 0;
}
/* Soft red glow blob */
.auth-left::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--red-soft) 0%, transparent 65%);
  border-radius: 50%;
  bottom: -350px; right: -250px;
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.7;
}
/* Subtle grid pattern */
.auth-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(164,22,26,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164,22,26,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 30% 30%, black 0%, transparent 70%);
}
.auth-left .eq-logo {
  position: relative;
  z-index: 2;
}
.auth-left-content h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--ink);
}
.auth-left-content h1 em {
  color: var(--red);
  font-style: normal;
  font-weight: 500;
}
.auth-left-content p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.auth-left-stats {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.auth-left-stats .stat-item {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.auth-left-stats .stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--red-tint);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.auth-left-stats .stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.auth-left-stats .stat-num em {
  font-style: normal;
}
.auth-left-stats .stat-label {
  font-size: 13px;
  color: var(--ink-soft);
}
.auth-left-footer {
  position: relative;
  z-index: 2;
  font-size: 12px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.auth-right {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}
.auth-form {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.auth-form-head {
  margin-bottom: 32px;
}
.auth-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.auth-form-head h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.auth-form-head h2 em {
  font-style: normal;
  color: var(--red);
  font-weight: 500;
}
.auth-form-head p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}
.auth-form-foot {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.auth-form-foot a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
}
.auth-form-foot a:hover { text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--ink-muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ===== Loading spinner ===== */
.eq-spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Page-level utilities ===== */
.text-muted { color: var(--ink-muted); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left {
    padding: 32px 24px;
    min-height: auto;
  }
  .auth-left-content h1 { font-size: 32px; }
  .auth-left-content p { font-size: 15px; margin-bottom: 24px; }
  .auth-left-stats { gap: 24px; padding-top: 18px; }
  .auth-right { padding: 40px 24px; }
}
