/* Login qismi uchun CSS kodlari *

/* style.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0908;
  --surface: #121110;
  --card: #1a1816;
  --border: #2e2a26;
  --accent: #c8974a;
  --accent2: #e8b96a;
  --text: #e8e2d9;
  --muted: #7a7168;
  --danger: #c0392b;
  --glow: rgba(200,151,74,0.15);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Pro', serif;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

/* ── ANIMATED BACKGROUND ── */
.bg-scene {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 72% 58% at 18% 82%, rgba(200,151,74,0.14) 0%, transparent 68%),
    radial-gradient(ellipse 65% 76% at 82% 18%, rgba(38,105,105,0.14) 0%, transparent 66%),
    radial-gradient(ellipse 54% 62% at 55% 52%, rgba(119,74,139,0.09) 0%, transparent 72%),
    linear-gradient(160deg, #0a0908 0%, #11100f 50%, #0a0806 100%);
  background-size: 150% 150%, 160% 160%, 170% 170%, 100% 100%;
  animation: colorDrift 26s ease-in-out infinite alternate;
}

@keyframes colorDrift {
  from { background-position: 0% 100%, 100% 0%, 50% 50%, 0 0; }
  to { background-position: 100% 25%, 0% 100%, 0% 0%, 0 0; }
}

.grid-lines {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(200,151,74,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,151,74,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  from { transform: translateY(0); }
  to   { transform: translateY(60px); }
}

/* Floating particles */
.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: float linear infinite;
}
@keyframes float {
  0%   { opacity: 0; transform: translateY(100vh) scale(0); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20px) scale(1.5); }
}

/* Vignette */
.vignette {
  position: fixed; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 40%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

/* ── LAYOUT ── */
.container {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  padding: 40px 20px;
}

/* ── LEFT PANEL ── */
.left-panel {
  grid-column: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  animation: slideInLeft 1s cubic-bezier(0.16,1,0.3,1) forwards;
  opacity: 0;
  transform: translateX(-40px);
}
@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 52px; height: 52px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.logo-icon::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,151,74,0.15), transparent);
}
.logo-icon svg { width: 28px; height: 28px; color: var(--accent); }

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand-name span { color: var(--accent); }

.tagline {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
}
.tagline em {
  font-style: italic;
  color: var(--accent);
}

.stats-row {
  display: flex;
  gap: 32px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.testimonial {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  max-width: 340px;
}
.testimonial p {
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
}
.testimonial cite {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
  font-style: normal;
  font-family: 'Space Mono', monospace;
}

/* ── DIVIDER ── */
.divider {
  grid-column: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── LOGIN CARD ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: cardAppear 1.2s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  box-shadow:
    0 0 0 1px rgba(200,151,74,0.05),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(200,151,74,0.04);
}
@keyframes cardAppear {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.card-corner {
  position: absolute;
  width: 80px; height: 80px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.2;
}
.card-corner.tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; border-radius: 6px 0 0 0; }
.card-corner.br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; border-radius: 0 0 6px 0; }

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

.card-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.card-subtitle {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* ── FORM ── */
.form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-label svg { width: 12px; height: 12px; color: var(--accent); }

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px 14px 44px;
  color: var(--text);
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.input-wrap input:focus {
  border-color: var(--accent);
  background: rgba(200,151,74,0.04);
  box-shadow: 0 0 0 3px rgba(200,151,74,0.1), inset 0 0 20px rgba(200,151,74,0.03);
}

.input-wrap input::placeholder { color: var(--muted); opacity: 0.6; }

.input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  transition: color 0.3s;
  pointer-events: none;
}
.input-wrap:focus-within .input-icon { color: var(--accent); }

.input-suffix {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--muted);
  transition: color 0.3s;
  background: none; border: none; padding: 0;
}
.input-suffix:hover { color: var(--accent); }

/* Floating label line animation */
.input-line {
  position: absolute;
  bottom: 0; left: 10px; right: 10px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
  transform-origin: left;
}
.input-wrap:focus-within .input-line { transform: scaleX(1); }

/* Options row */
.options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-wrap {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
}
.checkbox-wrap input[type="checkbox"] { display: none; }
.checkbox-box {
  width: 18px; height: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  background: var(--surface);
  flex-shrink: 0;
}
.checkbox-wrap input:checked + .checkbox-box {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-wrap input:checked + .checkbox-box::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #0a0908;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}
.checkbox-label { font-size: 14px; color: var(--muted); }

.forgot-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}
.forgot-link:hover { opacity: 0.7; }

/* Submit button */
.btn-submit {
  position: relative;
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 6px;
}

.btn-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-submit:hover::before { opacity: 1; }
.btn-submit:hover { color: #0a0908; border-color: transparent; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(200,151,74,0.25); }
.btn-submit:active { transform: translateY(1px); }

.btn-submit span { position: relative; z-index: 1; }

.btn-ripple {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s ease;
}
.btn-submit:active .btn-ripple { opacity: 1; transform: scale(2); transition: none; }

/* OR Divider */
.or-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 4px 0;
}
.or-line { flex: 1; height: 1px; background: var(--border); }
.or-text { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }

/* Social buttons */
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-social:hover { border-color: var(--accent); color: var(--text); background: rgba(200,151,74,0.05); }
.btn-social svg { width: 16px; height: 16px; }

/* Footer */
.card-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
.card-footer a { color: var(--accent); text-decoration: none; }
.card-footer a:hover { text-decoration: underline; }

/* ── RIGHT PANEL ── */
.right-panel {
  grid-column: 3;
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
  animation: slideInRight 1s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
  opacity: 0;
  transform: translateX(40px);
}
@keyframes slideInRight {
  to { opacity: 1; transform: translateX(0); }
}

.recent-items { width: 260px; }
.recent-title {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.recent-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.item-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.2s;
  cursor: pointer;
}
.item-card:hover { border-color: rgba(200,151,74,0.3); transform: translateX(-3px); }

.item-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.item-info { flex: 1; min-width: 0; }
.item-name { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta { font-family: 'Space Mono', monospace; font-size: 10px; color: var(--muted); margin-top: 2px; }

.item-badge {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.badge-found { background: rgba(39,174,96,0.15); color: #2ecc71; border: 1px solid rgba(39,174,96,0.2); }
.badge-lost  { background: rgba(192,57,43,0.15); color: #e74c3c; border: 1px solid rgba(192,57,43,0.2); }
.badge-new   { background: rgba(200,151,74,0.15); color: var(--accent); border: 1px solid rgba(200,151,74,0.2); }

/* Notification dot */
.notif-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Loading state */
.btn-submit.loading span { opacity: 0; }
.btn-submit.loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Error shake */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.shake { animation: shake 0.4s ease; }

/* Error message */
.error-msg {
  display: none;
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #e74c3c;
  text-align: center;
}
.error-msg.show { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .container { grid-template-columns: 1fr; justify-items: center; overflow-y: auto; padding: 40px 20px; }
  .left-panel, .right-panel { display: none; }
  .divider { width: 100%; max-width: 480px; }
}