/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(45deg, #2196F3, #3F51B5);
  background-size: cover;
  background-position: center;
}

#main-content {
  width: 100%;
}

/* Common Form Group Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #666;
  font-size: 0.9em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 1em;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2196F3;
}


/* ============================= */
/*     Forgot Password Page     */
/* ============================= */
.password-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  transform: translateZ(0);
  transition: transform 0.3s;
}

.password-container:hover {
  transform: translateY(-5px);
}

.password-header {
  text-align: center;
  margin-bottom: 30px;
}

.password-header h1 {
  color: #333;
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 10px;
}

.password-header p {
  color: #666;
  font-size: 0.9em;
}

.btn-send {
  width: 100%;
  padding: 12px;
  background: #2196F3;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.btn-send:hover {
  background: #1976D2;
}

.back-to-login {
  text-align: center;
  margin-top: 25px;
  color: #666;
}

.back-to-login a {
  color: #2196F3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.back-to-login a:hover {
  color: #1976D2;
}

.success-message {
  display: none;
  text-align: center;
  padding: 20px;
  background: #e8f5e9;
  border-radius: 10px;
  margin-top: 20px;
  color: #2e7d32;
}

.success-message i {
  color: #4caf50;
  font-size: 1.5em;
  margin-bottom: 10px;
}

@media (max-width: 480px) {
  .password-container {
    padding: 30px;
    margin: 15px;
  }
}


/* ============================= */
/*  Multi-step Registration Page */
/* ============================= */
.register-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
  transform: translateZ(0);
  transition: transform 0.3s;
}

/* Progress Indicator */
.progress-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

.progress-line {
  position: absolute;
  height: 3px;
  background: #eee;
  width: 100%;
  z-index: 0;
}

.progress-active {
  height: 3px;
  background: #2196F3;
  transition: width 0.3s ease;
  position: absolute;
  z-index: 1;
}

.step-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  z-index: 2;
  transition: all 0.3s;
}

.step-circle.active {
  background: #2196F3;
  color: white;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

/* Button Container and Buttons */
.button-container {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  gap: 15px;
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  max-width: unset;
}

.btn-primary {
  background: #2196F3;
  color: white;
}

.btn-primary:hover {
  background: #1976D2;
}

.btn-secondary {
  background: #eee;
  color: #666;
}

.btn-secondary:hover {
  background: #ddd;
}

/* Verification Code Input */
.code-input {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.code-input input {
  width: 45px;
  height: 45px;
  text-align: center;
  font-size: 1.2em;
  border: 2px solid #eee;
  border-radius: 10px;
}

.code-input input:focus {
  border-color: #2196F3;
  outline: none;
}

.resend-link {
  text-align: center;
  margin-top: 15px;
}

.resend-link a {
  color: #2196F3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.resend-link a:hover {
  color: #1976D2;
}

.password-mismatch {
  color: #e74c3c;
  font-size: 0.9em;
  margin-top: 5px;
  display: none;
}


/* ============================= */
/*      Modern Login Page       */
/* ============================= */
.login-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  transform: translateZ(0);
  transition: transform 0.3s;
}

.login-container:hover {
  transform: translateY(-5px);
}

.login-header {
  text-align: center;
}

.login-header h1 {
  color: #333;
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 10px;
}

.register-link p {
  display: flex;
  justify-content: center;
}

.register-link a {
  color: #2196f3;
}

#loginForm {
  margin-top: 40px;
}

/* Remember and Forgot Password */
.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 20px;
  font-size: 0.9em;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Login Button */
.btn-login {
  width: 100%;
  padding: 12px;
  background: #2196F3;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-login:hover {
  background: #1976D2;
}

/* Social Login */
.social-login {
  margin-top: 30px;
  text-align: center;
}

.social-login p {
  margin-bottom: 15px;
  color: #666;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.social-icon:hover {
  background: #2196F3;
  color: white;
  transform: translateY(-3px);
}

.forgot-password {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
  margin-left: auto;
}

.forgot-password:hover {
  color: #2196F3;
}

@media (max-width: 480px) {
  .login-container {
    padding: 30px;
    margin: 15px;
  }
}