:root {
  --auth-bg: #030816;
  --auth-bg-2: #081225;
  --auth-card: rgba(9, 19, 43, 0.92);
  --auth-border: rgba(168, 85, 247, 0.2);
  --auth-text: #f8fbff;
  --auth-muted: #9caad2;
  --auth-purple: #a855f7;
  --auth-blue: #4f7cff;
  --auth-success: #22c55e;
  --auth-error: #ef4444;
}

.auth-body {
  min-height: 100vh;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle at 20% 10%, rgba(168,85,247,.15), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(79,124,255,.15), transparent 30%),
    linear-gradient(180deg,#030714 0%,#06122b 50%,#030816 100%);

  color: var(--auth-text);
  font-family: Inter, Arial, sans-serif;
}

.auth-container {
  width: 100%;
  max-width: 440px;

  padding: 32px;
  border-radius: 20px;

  background: var(--auth-card);
  backdrop-filter: blur(20px);

  border: 1px solid var(--auth-border);

  box-shadow:
    0 20px 60px rgba(0,0,0,.4),
    0 0 30px rgba(168,85,247,.08);
}

.auth-title,
.auth-container h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-input {
  width: 100%;
  height: 52px;

  padding: 0 16px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);

  background: rgba(255,255,255,.04);
  color: #fff;

  font-size: 14px;
  outline: none;
  transition: .25s;
}

.auth-input::placeholder {
  color: var(--auth-muted);
}

.auth-input:focus {
  border-color: var(--auth-purple);
  box-shadow: 0 0 0 4px rgba(168,85,247,.15);
}

.auth-btn {
  height: 52px;
  border: 0;
  border-radius: 12px;

  cursor: pointer;

  background: linear-gradient(
    135deg,
    var(--auth-purple),
    var(--auth-blue)
  );

  color: #fff;
  font-size: 15px;
  font-weight: 700;

  transition: .25s;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(168,85,247,.3);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-error {
  margin-bottom: 16px;
  padding: 12px;

  border-radius: 10px;

  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);

  color: #ffb4b4;
  text-align: center;
}

.auth-success {
  margin-bottom: 16px;
  padding: 12px;

  border-radius: 10px;

  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);

  color: #9ef0b6;
  text-align: center;
}

.auth-switch {
  margin-top: 22px;
  text-align: center;
  line-height: 1.8;
  color: var(--auth-muted);
  font-size: 14px;
}

.auth-switch a {
  color: #b18cff;
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-container p b {
  display: inline-block;
  margin-left: 6px;

  color: #fff;

  padding: 4px 10px;
  border-radius: 8px;

  background: rgba(168,85,247,.18);
}

.auth-success a {
  color: #8ec5ff;
  text-decoration: none;
  font-weight: 600;
}

.auth-success a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {

  .auth-body {
    padding: 20px 16px;
    align-items: flex-start;
  }

  .auth-container {
    padding: 24px;
    border-radius: 16px;
  }

  .auth-title,
  .auth-container h2 {
    font-size: 24px;
  }

  .auth-input,
  .auth-btn {
    height: 48px;
  }
}

@media (max-width: 480px) {

  .auth-container {
    padding: 20px;
  }

  .auth-title,
  .auth-container h2 {
    font-size: 22px;
  }
}

:root[data-theme="light"] .auth-body {
  background:
    radial-gradient(circle at 16% 8%, rgba(124, 58, 237, 0.16), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(2, 132, 199, 0.14), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #e8f2ff 52%, #f8fbff 100%) !important;
  color: var(--theme-text);
}

:root[data-theme="light"] .auth-container {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
  border-color: var(--theme-border);
  box-shadow: 0 22px 60px rgba(42, 57, 120, 0.16), 0 0 28px rgba(124, 58, 237, 0.08);
}

:root[data-theme="light"] .auth-title,
:root[data-theme="light"] .auth-container h2,
:root[data-theme="light"] .auth-container p b {
  color: var(--theme-text);
}

:root[data-theme="light"] .auth-input {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--theme-border);
  color: var(--theme-text);
}

:root[data-theme="light"] .auth-switch {
  color: var(--theme-muted);
}
