* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --yellow: #f2c300;
  --yellow-strong: #ffd400;
  --black: #090909;
  --black-soft: #121212;
  --gray: #6f7278;
  --gray-light: #b9bcc3;
  --white: #ffffff;
  --danger: #ff5d5d;
  --success: #17c964;
  --border: rgba(255,255,255,0.08);
}

html,
body {
  min-height: 100%;
}

body.auth-body {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(242,195,0,0.12), transparent 20%),
    linear-gradient(225deg, rgba(255,255,255,0.03), transparent 30%),
    linear-gradient(180deg, #0b0b0b 0%, #151515 100%);
  overflow-x: hidden;
  position: relative;
}

.bg-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-yellow {
  width: 280px;
  height: 280px;
  background: rgba(242, 195, 0, 0.18);
  top: 8%;
  left: -80px;
}

.orb-gray {
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.08);
  bottom: 2%;
  right: -80px;
  animation-delay: 1.8s;
}

.auth-shell {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
  padding: 40px 0;
}

.auth-left {
  padding: 24px 10px 24px 0;
}

.brand-wrap {
  max-width: 700px;
}

.brand-logo-box {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(0,0,0,0.35);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 900;
  font-size: 2rem;
  color: var(--yellow);
}

.brand-chip {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(242,195,0,0.12);
  border: 1px solid rgba(242,195,0,0.28);
  color: #ffe57a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}

.auth-left h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin-bottom: 22px;
}

.auth-left h1 span {
  display: block;
  color: var(--yellow);
  text-shadow: 0 0 24px rgba(242,195,0,0.18);
}

.hero-copy {
  max-width: 620px;
  color: #d2d5db;
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 30px;
}

.hero-mini-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.mini-card {
  min-width: 180px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242,195,0,0.35);
}

.mini-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--yellow);
}

.mini-card span {
  color: #c4c7ce;
  line-height: 1.6;
  font-size: 0.92rem;
}

.auth-right {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  border-radius: 30px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)),
    rgba(12,12,12,0.86);
  border: 1px solid var(--border);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
}

.auth-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) {
  background: var(--yellow);
}

.window-dots span:nth-child(2) {
  background: #ffffff;
}

.window-dots span:nth-child(3) {
  background: #8b8f96;
}

.card-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #d2d5db;
  font-weight: 800;
}

.tab-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 18px;
}

.tab-btn {
  border: none;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 14px;
  background: transparent;
  color: #d7dae0;
  font-weight: 700;
  transition: 0.25s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--yellow), #ffde3b);
  color: #111;
  box-shadow: 0 10px 24px rgba(242,195,0,0.22);
}

.alert {
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.alert.success {
  background: rgba(23,201,100,0.12);
  border: 1px solid rgba(23,201,100,0.3);
  color: #9df0bd;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2 {
  font-size: 1.65rem;
  margin-bottom: 6px;
  color: var(--white);
}

.panel-head p {
  color: #c5c8cf;
  line-height: 1.6;
}

.tab-panel {
  display: none;
  animation: fadeSlide 0.35s ease;
}

.tab-panel.active {
  display: block;
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f0f0f0;
}

.field input {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  padding: 0 16px;
  font-size: 0.96rem;
  outline: none;
  transition: 0.25s ease;
}

.field input::placeholder {
  color: #9ea3ab;
}

.field input:focus {
  border-color: rgba(242,195,0,0.42);
  box-shadow: 0 0 0 4px rgba(242,195,0,0.08);
}

.field input.is-invalid {
  border-color: rgba(255,93,93,0.55);
  box-shadow: 0 0 0 4px rgba(255,93,93,0.08);
}

.error-text {
  color: #ff9090;
  font-size: 0.82rem;
  line-height: 1.5;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 78px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--yellow);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-primary-main {
  height: 56px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--yellow), #ffdf48);
  color: #101010;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 36px rgba(242,195,0,0.2);
  transition: 0.28s ease;
}

.btn-primary-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(242,195,0,0.24);
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.8s ease forwards;
}

.delay-2 {
  animation-delay: 0.2s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatOrb {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-16px) translateX(10px);
  }
}

@media (max-width: 1024px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 30px 0 40px;
  }

  .auth-left {
    padding-right: 0;
  }

  .auth-right {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    width: min(100% - 24px, 1200px);
    gap: 22px;
  }

  .auth-card {
    padding: 18px;
    border-radius: 24px;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }

  .auth-left h1 {
    line-height: 0.98;
  }

  .hero-mini-cards {
    flex-direction: column;
  }
}