*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #07090d;
  --panel: #11151c;
  --panel-2: #0d1117;
  --input: #121821;
  --text: #f5f7fa;
  --text-soft: #b8c0cc;
  --text-muted: #7f8a99;
  --accent: #ff9c2e;
  --accent-hover: #ffae4e;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 156, 46, 0.06), transparent 22%),
    radial-gradient(circle at bottom right, rgba(255, 156, 46, 0.04), transparent 20%),
    var(--bg);
  color: var(--text);
}

.auth-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* disable old visual layers but keep structure */
.bg,
.bg-grid,
.orb,
.noise {
  display: none;
}

/* MATCH SIGNUP PAGE LAYOUT */
.layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  max-width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
}

/* LEFT SIDE */
.side {
  width: 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  background:
    radial-gradient(circle at center, rgba(255, 156, 46, 0.06), transparent 24%),
    #0a0d13;
}

.side-inner {
  width: 100%;
  max-width: 640px;
  padding: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 34px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.badge .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 156, 46, 0.75);
}

.side-title {
  margin: 0 0 14px;
  font-size: 58px;
  line-height: 1.08;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
}

.grad {
  color: var(--accent);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.side-sub {
  margin: 0 0 28px;
  max-width: 560px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
  max-width: 580px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-soft);
  background: transparent;
  border: none;
  padding: 0;
}

.feature .icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  margin-top: 2px;
  background: linear-gradient(135deg, rgba(255, 156, 46, 0.95), rgba(255, 174, 78, 0.75));
  box-shadow: 0 0 0 6px rgba(255, 156, 46, 0.08);
}

.feature-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  letter-spacing: -0.01em;
  font-size: 16px;
}

/* RIGHT SIDE */
.card-wrap {
  width: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background: rgba(6, 8, 12, 0.55);
}

.card {
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, rgba(17, 21, 28, 0.98), rgba(12, 16, 23, 0.98));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px 30px 28px;
  box-shadow: var(--shadow);
  position: relative;
  backdrop-filter: none;
}

.card::before {
  display: none;
}

.card-top {
  display: block;
  margin-bottom: 8px;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.auth-subtitle {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

/* FORM */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  margin-bottom: 0;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--input);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-shell input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.input-shell input::placeholder {
  color: var(--text-muted);
}

.input-shell:focus-within {
  border-color: rgba(255, 156, 46, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 156, 46, 0.10);
  background: #161d27;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  transform: translateY(-1px);
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.checkbox-label input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.error-message {
  margin: 2px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid rgba(255, 92, 92, 0.22);
  font-size: 14px;
  color: #ffd6d6;
}

.hidden {
  display: none;
}

.btn-primary {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 14px 30px rgba(255, 156, 46, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(255, 156, 46, 0.22);
}

.btn-primary:disabled {
  opacity: 0.8;
  cursor: default;
}

.divider {
  position: relative;
  margin: 10px 0 0;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

.divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.10);
  top: 50%;
}

.divider span {
  position: relative;
  padding: 0 12px;
  background: transparent;
}

.ghost-btn {
  margin-top: 10px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  height: 54px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.94);
  font-weight: 700;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.ghost-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,156,46,0.18);
  color: var(--accent);
}

.arrow {
  opacity: 0.8;
}

.auth-footer {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .side-title {
    font-size: 48px;
  }
}

@media (max-width: 980px) {
  .layout {
    flex-direction: column;
    min-height: auto;
  }

  .side,
  .card-wrap {
    width: 100%;
  }

  .side {
    min-height: 42vh;
    padding: 34px 24px;
  }

  .card-wrap {
    min-height: auto;
    padding: 18px 18px 28px;
  }

  .side-inner {
    max-width: 520px;
  }

  .side-title {
    font-size: 40px;
    margin-bottom: 22px;
  }

  .card {
    max-width: 520px;
    padding: 26px 20px 22px;
  }

  .auth-title {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .side {
    display: none;
  }

  .card-wrap {
    width: 100%;
    min-height: 100vh;
    padding: 18px 14px;
  }

  .card {
    border-radius: 22px;
    padding: 22px 16px 18px;
  }

  .auth-title {
    font-size: 30px;
  }

  .input-shell,
  .btn-primary,
  .ghost-btn {
    height: 50px;
  }
}