:root {
  /* Elegant Dark Theme Palette */
  --bg-main: #050505;
  --bg-card: #0a0a0a;
  --bg-input: #121212;
  --text-main: #ffffff;
  --text-muted: #888888;
  --border-color: #222222;
  --primary-color: #ffffff; /* White button for a premium monochromatic look */
  --primary-hover: #e5e5e5;
  --primary-text: #000000;
  --ring-color: rgba(255, 255, 255, 0.2);
  --focus-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  /* Elegant ambient gradient background */
  background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, transparent 50%);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: center;
}

.auth-box {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(10px);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Form Styles */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-group label {
  font-size: 13px;
  font-weight: 500;
  color: #cccccc;
}

input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: var(--focus-transition);
}

input::placeholder {
  color: #444444;
}

input:hover {
  border-color: #333333;
}

input:focus {
  border-color: #555555;
  background: #171717;
  box-shadow: 0 0 0 4px var(--ring-color);
}

/* Primary Button */
.btn-primary {
  background: var(--primary-color);
  color: var(--primary-text);
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: var(--focus-transition);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Secondary / OTP Button Styles */
#sendOtpBtn {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--focus-transition);
}

#sendOtpBtn:hover {
  border-color: #555555;
  background: rgba(255, 255, 255, 0.05);
}

#sendOtpBtn:active {
  transform: translateY(1px);
}

/* Footer & Terms */
.terms {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--focus-transition);
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}