/* =========================================
   EarnView — Auth Pages v2.0
   Premium login/register aesthetic
   ========================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 10;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px);
  animation: fadeIn 0.6s var(--ease);
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  padding: 12px 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.25s var(--ease);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: rgba(255,255,255,0.05);
}

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

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.form-error {
  font-size: 13px;
  color: var(--red);
  display: none;
  padding: 10px 14px;
  background: var(--red-dim);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248,113,113,0.2);
}

.form-error.show {
  display: block;
  animation: fadeIn 0.3s var(--ease);
}

/* Referral field */
.referral-input-group {
  position: relative;
}

.referral-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  padding: 3px 8px;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Submit */
.btn-submit {
  padding: 14px;
  background: var(--accent);
  color: #0a0a12;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-submit:hover::before { opacity: 1; }

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer link */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s;
}

.auth-footer a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

/* Password strength */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.strength-bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  transition: background 0.3s var(--ease);
}

.strength-bar.active-weak { background: var(--red); }
.strength-bar.active-medium { background: var(--gold); }
.strength-bar.active-strong { background: var(--accent); }

/* Terms */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.terms-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.terms-check a {
  color: var(--accent);
  transition: color 0.2s;
}
.terms-check a:hover { text-decoration: underline; }

/* Success message */
.auth-success {
  text-align: center;
  padding: 28px;
  background: var(--accent-dim);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: var(--radius);
  display: none;
}

.auth-success.show { 
  display: block;
  animation: fadeIn 0.4s var(--ease);
}

.auth-success .success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.auth-success h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}

.auth-success p {
  font-size: 14px;
  color: var(--text-secondary);
}
