/* ── Auth pages — split screen design ── */

:root {
  --brand: #5B5FEF;
  --brand-light: rgba(91, 95, 239, 0.12);
  --card-shadow: 0 8px 40px rgba(91, 95, 239, 0.12);
  --radius: 12px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  background: #fff;
}

/* ── Split screen ── */
.split-left {
  position: fixed;
  top: 0; left: 0;
  width: 30%; height: 100vh;
  background: var(--brand);
  overflow: visible;
  z-index: 2;
}

/* Dialga image on left */
.dialga-img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -250px;
  width: 600px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  transform: translateY(-50%) translateZ(0);
}

/* Diagonal lines on left */
.split-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.03) 40px,
    rgba(255,255,255,0.03) 41px
  );
}

/* Large decorative title on left */
.left-title {
  position: absolute;
  bottom: 40px; left: 40px;
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  opacity: 0.15;
  letter-spacing: 2px;
  pointer-events: none;
}

/* Scattered white circles on left */
.left-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
}
.left-dot-1 { width: 60px; height: 60px; top: 15%; left: 20%; opacity: 0.12; }
.left-dot-2 { width: 20px; height: 20px; top: 45%; left: 70%; opacity: 0.15; }
.left-dot-3 { width: 40px; height: 40px; top: 70%; left: 35%; opacity: 0.08; }
.left-dot-4 { width: 30px; height: 30px; top: 25%; left: 55%; opacity: 0.1; }

.split-right {
  position: fixed;
  top: 0; right: 0;
  width: 70%; height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #fff;
  overflow: hidden;
}

/* Decorative circles on right */
.right-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  background: transparent;
  pointer-events: none;
  animation: circlePulse 4s ease-in-out infinite;
}
.right-circle-1 {
  width: 500px; height: 500px;
  bottom: -100px; right: -100px;
  border-color: rgba(91, 95, 239, 0.12);
}
.right-circle-2 {
  width: 300px; height: 300px;
  top: 30%; right: 5%;
  border-color: rgba(91, 95, 239, 0.08);
  animation-delay: 1s;
}
.right-circle-3 {
  width: 150px; height: 150px;
  top: 5%; right: 15%;
  border-color: rgba(91, 95, 239, 0.06);
  animation-delay: 2s;
}

@keyframes circlePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.02); }
}

/* ── Card ── */
.auth-card {
  width: 380px;
  max-width: 90%;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 40px;
  position: relative;
  z-index: 1;
  animation: cardIn 0.5s ease forwards;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ── */
.auth-logo { text-align: center; margin-bottom: 4px; }
.auth-logo h1 {
  font-size: 28px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1.2;
}
.auth-subtitle {
  text-align: center;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 20px;
}

/* ── Feature pills ── */
.feature-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.feature-pill {
  background: #f4f4ff;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* ── Form ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.input-group { position: relative; }
.auth-input {
  width: 100%;
  border: 2px solid #eee;
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, border-left-color 0.2s;
  background: #fff;
}
.auth-input:focus {
  border-color: var(--brand);
  border-left-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 95, 239, 0.12);
}
.auth-input::placeholder { color: #bbb; }
.field-hint {
  font-size: 11px;
  color: #aaa;
  margin-top: 4px;
  padding-left: 4px;
}

/* ── Button ── */
.auth-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 15px rgba(91, 95, 239, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 4px;
}
.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 95, 239, 0.45);
}
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ── Error ── */
.error-msg {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e53e3e;
  font-size: 13px;
  display: none;
}
.error-msg.visible { display: block; }

/* ── Footer ── */
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #888;
}
.auth-footer a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* ── Nav buttons ── */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  z-index: 2;
  position: relative;
}
.nav-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(91, 95, 239, 0.08);
  border: 1px solid rgba(91, 95, 239, 0.15);
  border-radius: 16px;
  cursor: not-allowed;
  transition: all 0.2s ease;
  min-width: 64px;
}
.nav-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.5;
}
.nav-btn span {
  font-size: 10px;
  font-weight: 600;
  color: rgba(91, 95, 239, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.nav-btn.coming-soon:hover {
  background: rgba(91, 95, 239, 0.14);
  border-color: rgba(91, 95, 239, 0.3);
  transform: translateY(-2px);
}
.nav-btn.coming-soon:hover::after {
  content: "Скоро";
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Dialga stickers (mobile only) ── */
.dialga-sticker {
  position: fixed;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
  display: none;
  z-index: 0;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .split-left { display: none; }
  .split-right {
    width: 100%;
    padding: 20px;
  }
  .auth-card {
    box-shadow: none;
    padding: 30px 20px;
    max-width: 100%;
  }
  .feature-pills { flex-direction: column; align-items: center; }
  .right-circle, .dialga-img { display: none; }
  .dialga-sticker { display: block; }
  .dialga-sticker-1 { top: -10px; right: -15px; width: 90px; transform: rotate(15deg) scaleX(-1); opacity: 0.85; }
  .dialga-sticker-2 { bottom: -10px; left: -15px; width: 80px; transform: rotate(-10deg); opacity: 0.75; }
  .dialga-sticker-3 { top: 40%; right: -20px; width: 70px; transform: rotate(20deg) scaleX(-1); opacity: 0.5; }
  .auth-card { position: relative; z-index: 1; }
  .nav-buttons { gap: 8px; }
  .nav-btn { min-width: 54px; padding: 10px 12px; }
  .nav-btn img { width: 24px; height: 24px; }
  .nav-btn span { font-size: 9px; }
}
