:root {
  --purple:     #7b3ff2;
  --teal:       #2fa899;
  --bg:         #080614;
  --bg2:        #0d0b1c;
  --white:      #ffffff;
  --gray:       #8888aa;
  --gray-light: #c0c0d8;
  --danger:     #ef4444;
}

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

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-container {
  background: var(--bg2);
  border: 1px solid rgba(123, 63, 242, 0.2);
  border-radius: 8px;
  width: 100%;
  max-width: 440px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  text-align: center;
}

.logo { margin-bottom: 24px; }
.logo img { width: 48px; border-radius: 8px; }

.title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 15px;
  color: var(--gray-light);
  margin-bottom: 32px;
  line-height: 1.5;
}

.form-group {
  text-align: left;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 4px;
}
.form-input:focus { border-color: var(--purple); }

/* OTP boxes */
.otp-container {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.otp-box {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-family: 'Bebas Neue', sans-serif;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 4px;
  outline: none;
  transition: all 0.2s;
  -webkit-appearance: none;
}
.otp-box:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(47, 168, 153, 0.2);
}

/* Primary button */
.btn {
  width: 100%;
  background: linear-gradient(135deg, var(--purple), #9b6bff);
  color: var(--white);
  border: none;
  padding: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.btn:hover    { opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Messages */
.error-msg   { color: var(--danger); font-size: 13px; margin-top: 12px; display: none; }
.success-msg { color: var(--teal);   font-size: 13px; margin-top: 12px; display: none; }

/* Step 2 hidden by default */
#step-2 { display: none; }

/* Resend row */
#resend-row { margin-top: 16px; min-height: 22px; }

#btn-resend:hover { color: #9b6bff; }

/* Back link */
.back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--gray);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.back-link:hover { color: var(--white); }

/* Mobile */
@media (max-width: 480px) {
  .auth-container { padding: 28px 20px; }
  .otp-box { width: 40px; height: 50px; font-size: 20px; }
}