:root {
  --auth-bg-start: #0f172a;
  --auth-bg-end: #1d4ed8;
  --auth-card-bg: #ffffff;
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-primary: #2563eb;
  --auth-primary-hover: #1d4ed8;
  --auth-border: #dbe3f0;
  --auth-danger: #dc2626;
}

body.auth-page {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top left, #334155 0%, transparent 42%),
    radial-gradient(circle at bottom right, #1e40af 0%, transparent 38%),
    linear-gradient(135deg, var(--auth-bg-start), var(--auth-bg-end));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.auth-shell {
  width: 100%;
  max-width: 460px;
}

.auth-card {
  background: var(--auth-card-bg);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.auth-brand {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auth-primary);
  margin-bottom: 8px;
}

.auth-heading {
  margin: 0;
  text-align: center;
  color: var(--auth-text);
  font-weight: 700;
  font-size: 28px;
}

.auth-subtext {
  margin: 10px 0 20px;
  text-align: center;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  background: #f8fafc;
}

.auth-tab.active {
  border-color: var(--auth-primary);
  color: var(--auth-primary);
  background: #eff6ff;
}

.auth-error {
  color: var(--auth-danger);
  font-size: 13px;
  margin: 0 0 10px;
}

.auth-label {
  display: block;
  margin-bottom: 6px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
}

.auth-input {
  width: 100%;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-input-wrap {
  position: relative;
}

.auth-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.auth-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--auth-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px;
  margin-top: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.auth-btn:hover {
  background: var(--auth-primary-hover);
}

.auth-btn:active {
  transform: scale(0.99);
}

.auth-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 2px;
}

.auth-link {
  color: var(--auth-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-separator {
  margin: 18px 0;
  text-align: center;
  position: relative;
  color: var(--auth-muted);
  font-size: 12px;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--auth-border);
}

.auth-separator::before {
  left: 0;
}

.auth-separator::after {
  right: 0;
}

.auth-google-wrap {
  display: flex;
  justify-content: center;
}

.auth-referral {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 14px;
}

.otp-timer {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: var(--auth-primary);
  font-weight: 600;
}

.otp-resend-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--auth-primary);
  font-size: 14px;
  font-weight: 600;
}

.otp-resend-btn:disabled {
  color: #94a3b8;
}
