/* ===== Kirish / ro'yxatdan o'tish: kosmik fon, globus, tilla pufakchalar ===== */
.auth-body {
  margin: 0; min-height: 100vh; color: #e8edff; background: #040a1e;
  font-family: 'DM Sans', sans-serif; overflow-x: hidden;
}
.auth-bg {
  position: fixed; inset: 0; z-index: 0;
  background-size: cover; background-position: center bottom; background-repeat: no-repeat;
}
.auth-bg::after {                         /* chetlarini sal qoraytirib, markazni ajratamiz */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(4,10,30,0) 35%, rgba(4,10,30,.55) 100%);
}

/* Sayt nomi (yuqori chap burchak) */
.auth-brand {
  position: fixed; top: 16px; left: 22px; z-index: 3;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -.3px;
  background: linear-gradient(135deg, #9b8cff, #ff7ad9); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Yon yozuvlar (faqat katta ekranda) */
.auth-side {
  position: fixed; top: 38%; z-index: 1; width: 220px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none;
}
.auth-side-l { left: 4vw; } .auth-side-r { right: 4vw; }
.auth-side span {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 500;
  font-size: 34px; line-height: 1.1;
  background: linear-gradient(180deg, #ffe9a8, #d9a94a 70%, #b98a2c); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}
.auth-side i {                             /* tilla chiziq + romb */
  display: block; width: 200px; height: 1px; position: relative;
  background: linear-gradient(90deg, transparent, #d9a94a 30%, #d9a94a 70%, transparent);
}
.auth-side i::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  background: #ffd36b; transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 8px #ffbf3d;
}
@media (max-width: 1180px) { .auth-side { display: none; } }

/* Sahna */
.auth-stage {
  position: relative; z-index: 2; min-height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 14px 26px;
}

/* Globus + aylanuvchi so'zlar */
.orbit-scene {
  position: relative; width: min(100%, 760px); height: clamp(215px, 35vh, 340px);
  margin-bottom: -6px; --D: 250px; --cy: 150px;
}
.orbit-globe {
  position: absolute; z-index: 5; left: 50%; top: var(--cy);
  height: calc(var(--D) * 1.2); width: auto; max-width: none;
  transform: translate(-50%, -50%); pointer-events: none;
  animation: orbit-float 7s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(70,130,255,.45));
}
@keyframes orbit-float { 50% { transform: translate(-50%, calc(-50% - 6px)); } }
.orbit-words { position: absolute; inset: 0; }
.orbit-bubble {
  position: absolute; left: 0; top: 0; z-index: 1; white-space: nowrap; will-change: transform, opacity;
  padding: 8px 24px; border-radius: 14px;
  font: 600 17px/1.2 'DM Sans', 'Noto Sans KR', 'Malgun Gothic', sans-serif; color: #f5f7ff; letter-spacing: .2px;
  background: linear-gradient(180deg, rgba(20,34,84,.92), rgba(7,14,44,.94));
  border: 1.5px solid #d9a94a;
  box-shadow: 0 0 0 2px rgba(217,169,74,.18), 0 0 16px rgba(255,190,70,.35), inset 0 0 12px rgba(120,150,255,.25);
}
.orbit-bubble::before, .orbit-bubble::after {    /* chetlaridagi tilla bezak */
  content: ''; position: absolute; top: 50%; width: 7px; height: 7px;
  background: #ffd36b; transform: translateY(-50%) rotate(45deg); box-shadow: 0 0 6px #ffbf3d;
}
.orbit-bubble::before { left: -5px; } .orbit-bubble::after { right: -5px; }
.orbit-scene.is-static .orbit-globe { animation: none; }

/* Karta */
.auth-card {
  position: relative; width: min(100%, 470px); box-sizing: border-box; margin: 0;
  padding: 58px 30px 22px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(14,22,66,.80), rgba(8,13,42,.86));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(126,112,255,.85);
  box-shadow: 0 0 0 1px rgba(70,120,255,.25), 0 0 34px rgba(110,80,255,.45), 0 18px 50px rgba(0,0,10,.55), inset 0 0 40px rgba(60,90,255,.12);
}
.auth-hump {                               /* kartaning tepasidagi "do'ng" */
  position: absolute; left: 50%; top: -34px; width: 210px; height: 58px; transform: translateX(-50%);
  border-radius: 110px 110px 0 0 / 60px 60px 0 0;
  background: linear-gradient(180deg, #0f1946, #0d1642);
  border: 1.5px solid rgba(126,112,255,.85); border-bottom: 0;
  box-shadow: 0 -6px 22px rgba(110,80,255,.35);
}
.auth-emblem {
  position: absolute; left: 50%; top: -30px; width: 150px; height: auto; transform: translateX(-50%);
  filter: drop-shadow(0 0 10px rgba(255,200,80,.45)); pointer-events: none;
}

/* Sarlavha: — KIRISH — */
.auth-card .card-title {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 16px;
  font-family: 'Cinzel', Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 25px;
  letter-spacing: 1.5px; text-transform: uppercase; text-align: center; color: transparent;
  background: linear-gradient(180deg, #ffeeb4, #e3b650 55%, #b98a2c); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}
.auth-card .card-title::before, .auth-card .card-title::after {
  content: ''; flex: 1 1 24px; max-width: 70px; height: 1px; filter: none;
  background: linear-gradient(90deg, transparent, #d9a94a);
}
.auth-card .card-title::after { transform: scaleX(-1); }

/* Forma */
.auth-card label {
  display: block; margin: 0 0 6px 4px; font-size: 12.5px; font-weight: 500; letter-spacing: .3px; color: #aab6e6;
}
.auth-card input[type="text"], .auth-card input[type="email"], .auth-card input[type="password"] {
  width: 100%; box-sizing: border-box; height: 46px; margin-bottom: 14px; padding: 0 44px 0 46px;
  font: 400 15px 'DM Sans', sans-serif; color: #eef1ff;
  background-color: rgba(14,24,76,.62); background-repeat: no-repeat; background-position: 15px center; background-size: 19px;
  border: 1px solid rgba(110,130,255,.45); border-radius: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.auth-card input:focus { border-color: #8f86ff; box-shadow: 0 0 0 3px rgba(125,110,255,.28), 0 0 16px rgba(110,100,255,.35); }
.auth-card input::placeholder { color: #7f8cc4; }
.auth-card input:-webkit-autofill {
  -webkit-text-fill-color: #eef1ff; caret-color: #eef1ff;
  -webkit-box-shadow: 0 0 0 100px #0e1850 inset; box-shadow: 0 0 0 100px #0e1850 inset;
}
/* maydon ichidagi ikonkalar */
.auth-card input[type="email"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa8e8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/svg%3E"); }
.auth-card input[type="password"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa8e8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V8a4 4 0 018 0v2.5'/%3E%3C/svg%3E"); }
.auth-card input[type="text"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa8e8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.2 3.6-7 8-7s8 2.8 8 7'/%3E%3C/svg%3E"); }

/* parol ko'zi */
.pw-wrap { position: relative; }
.pw-eye {
  position: absolute; right: 8px; top: 3px; width: 40px; height: 40px; padding: 0; border: 0; background: none;
  color: #9aa8e8; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 10px;
}
.pw-eye:hover { color: #fff; }
.pw-eye .slash { opacity: 0; } .pw-eye.on .slash { opacity: 1; }

.auth-card .row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 16px; font-size: 13.5px; }
.auth-card .row-between .check-row { margin: 0; }
.auth-card .row-between a { color: #b9c4ff; }
.auth-card .check-row { display: flex; align-items: center; gap: 9px; margin: -2px 0 16px; color: #aab6e6; font-size: 13.5px; cursor: pointer; }
.auth-card .check-row input { width: 17px; height: 17px; margin: 0; accent-color: #7d6eff; }
.auth-card a { color: #b9c4ff; text-decoration: none; }
.auth-card a:hover { color: #fff; text-decoration: underline; }
.auth-card .form-error { color: #ff8b9a; font-size: 12.5px; margin: -10px 0 14px 4px; }

.auth-card .btn.btn-primary {
  width: 100%; height: 50px; justify-content: center; border: 0; border-radius: 999px;
  font: 700 16px 'DM Sans', sans-serif; color: #fff; letter-spacing: .3px;
  background: linear-gradient(90deg, #8a4dff, #4f7bff 60%, #3b9bff);
  box-shadow: 0 6px 22px rgba(100,90,255,.55), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.auth-card .btn.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 28px rgba(100,90,255,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.auth-card .auth-alt { margin: 16px 0 0; text-align: center; font-size: 14px; color: #aab6e6; }
.auth-card .auth-alt a { color: #ffc94d; font-weight: 700; }
.auth-card .auth-alt a:hover { color: #ffe08a; }

/* Telefon */
@media (max-width: 560px) {
  .auth-brand { position: relative; z-index: 3; top: auto; left: auto; text-align: center; padding-top: 14px; }
  .auth-stage { min-height: 0; padding-top: 6px; justify-content: flex-start; }
  .auth-card { padding: 58px 20px 22px; }
  .auth-card .card-title { font-size: 21px; }
  .orbit-bubble { font-size: 13px; padding: 6px 16px; }
  .orbit-bubble::before, .orbit-bubble::after { width: 5px; height: 5px; }
  .orbit-bubble::before { left: -4px; } .orbit-bubble::after { right: -4px; }
}
@media (prefers-reduced-motion: reduce) { .orbit-globe { animation: none; } }
