

.auth-wrapper {
  min-height: calc(100vh - 60px);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
  padding: 40px 20px;
  position: relative; overflow: hidden;
}

.auth-wrapper::before,
.auth-wrapper::after {
  content: '';
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; opacity: 0.4;
}
.auth-wrapper::before {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.5), transparent);
  top: -100px; left: -100px;
}
.auth-wrapper::after {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(139,92,246,0.4), transparent);
  bottom: -80px; right: -80px;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 0 0 1px rgba(99,102,241,0.1);
  position: relative; z-index: 1;
  animation: cardIn 0.4s cubic-bezier(0.34,1.2,0.64,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card-icon {
  text-align: center; font-size: 40px; margin-bottom: 12px;
}

.auth-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px; font-weight: 800;
  color: #1e293b; margin-bottom: 6px;
  text-align: center; letter-spacing: -0.5px;
}

.auth-card-sub {
  font-size: 13px; color: #64748b;
  text-align: center; margin-bottom: 24px;
  line-height: 1.5;
}
.auth-card-sub a { color: #6366f1; font-weight: 600; }
.auth-card-sub a:hover { text-decoration: underline; }

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 12px; font-weight: 700;
  color: #475569; margin-bottom: 6px;
  letter-spacing: 0.3px; text-transform: uppercase;
}

.form-control {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: #1e293b;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  outline: none;
}
.form-control::placeholder { color: #94a3b8; }
.form-control:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.form-control.error { border-color: #ef4444; }
.form-control.success { border-color: #10b981; }

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.password-strength {
  height: 4px; background: #e2e8f0;
  border-radius: 4px; margin-top: 6px; overflow: hidden;
}
.password-strength-bar {
  height: 100%; border-radius: 4px;
  width: 0; transition: all 0.3s;
}
.strength-weak   { width: 33%; background: #ef4444; }
.strength-medium { width: 66%; background: #f59e0b; }
.strength-strong { width: 100%; background: #10b981; }

.btn.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none; border-radius: 10px;
  padding: 13px 24px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; margin-top: 8px;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.2px;
}
.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}
.btn.btn-primary:active { transform: translateY(0); }

.auth-divider {
  border: none; border-top: 1px solid #e2e8f0;
  margin: 20px 0;
}

.auth-hint {
  font-size: 11px; color: #94a3b8;
  text-align: center; margin-top: 4px;
  line-height: 1.5;
}
.auth-link {
  color: #6366f1; font-size: 13px; font-weight: 500;
  display: block; text-align: center;
  margin-top: 14px;
}
.auth-link:hover { text-decoration: underline; }

.security-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 11px; color: #1e40af;
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.token-error-wrap {
  text-align: center; padding: 20px 0;
}
.token-error-wrap .error-icon { font-size: 48px; margin-bottom: 12px; }
.token-error-wrap h3 { color: #1e293b; font-size: 18px; margin-bottom: 8px; }
.token-error-wrap p  { color: #64748b; font-size: 13px; margin-bottom: 20px; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; border-radius: 16px; }
  .auth-card-title { font-size: 20px; }
  .form-row { grid-template-columns: 1fr; }
}
