:root {
  --primary: #ff9800;           /* Orange */
  --primary-dark: #e68900;      /* Darker orange */
  --secondary: #6c757d;
  --success: #28a745;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #212529;
  --border-radius: 12px;
  --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.25);
  --transition: all 0.3s ease-in-out;
}

/* Animated gradient background */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  margin: 0;

  display: flex;
  align-items: center;   /* vertical center */
  justify-content: center; /* horizontal center */

  background: linear-gradient(-45deg, #ff9800, #ff5722, #ffcc80, #ff7043);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* Login container */
.auth-container {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.8s ease-out;
  padding: 1.5rem;
  margin: auto;  /* ensure centering */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.auth-header {
  text-align: center;
  margin-bottom: 1rem;
}

.auth-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.auth-header p {
  font-size: 0.95rem;
  color: #555;
}

/* Logo */
.auth-logo {
  max-width: 80px;
  height: auto;
  margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255,152,0,0.4);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,152,0,0.6);
}

/* Input fields */
.form-control {
  border-radius: var(--border-radius);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(255,152,0,0.25);
}

/* Input group icons */
.input-group-text {
  border: 1px solid #ddd;
  border-right: none;
  color: var(--primary-dark);
  transition: transform 0.2s ease, color 0.2s ease;
  background: #fff;
}

/* Animate icon on focus */
.input-group:focus-within .input-group-text {
  color: var(--primary);
  transform: scale(1.2) rotate(-5deg);
}

/* Forgot password link */
.btn-link {
  font-size: 0.85rem;
  padding: 0;
  color: var(--primary);
}

.btn-link:hover {
  color: var(--primary-dark);
}

/* Alerts */
.alert {
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

/* Shake animation */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.5s ease;
}

/* Footer */
.auth-body .footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

/* Slider Captcha */
.slider-captcha {
  position: relative;
  width: 280px;
  margin: auto;
  user-select: none;
}

.captcha-piece {
  position: absolute;
  top: 0;
  left: 0;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.4));
}

.slider-container {
  background: #eee;
  border-radius: 20px;
  height: 40px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.slider-track {
  height: 100%;
  background: #ff9800;
  width: 0;
  transition: width 0.3s;
  position: relative;
}

#slider-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  font-size: 0.9rem;
  color: #666;
  pointer-events: none;
}

.slider-button {
  width: 40px;
  height: 40px;
  background: #ff9800;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: grab;
}
.steps-container {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  position: relative;
}

.steps-container::before {
  content: "";
  position: absolute;
  top: 20px; /* halfway of step-icon height */
  left: 0;
  right: 0;
  height: 4px;
  background: #444; /* base line */
  z-index: 0;
  border-radius: 2px;
}

.step {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1; /* make step icons above the line */
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  line-height: 40px;
  margin: 0 auto 5px;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.step-label {
  font-size: 0.85rem;
  color: #ccc;
}


