/* Auth Pages Shared Styles */
.auth-section {
  min-height: 100vh;
  padding: 2rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  display: flex;
  align-items: center;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Register Card Styles */
.register-card {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  animation: cardAppear 0.6s ease-out;
}

.register-card .card-header {
  background: linear-gradient(135deg, #4c9fa2 0%, #3a7a7c 100%);
  padding: 2rem 1.5rem;
  border: none;
  position: relative;
  overflow: hidden;
  animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.register-card .card-header:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.register-card .card-header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 2.5rem !important;
}

/* Form Field Styles */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

/* Staggered animation for form groups */
.form-group:nth-child(1) .input-group {
  animation-delay: 0.1s;
}
.form-group:nth-child(2) .input-group {
  animation-delay: 0.2s;
}
.form-group:nth-child(3) .input-group {
  animation-delay: 0.3s;
}
.form-group:nth-child(4) .input-group {
  animation-delay: 0.4s;
}
.form-group:nth-child(5) .input-group {
  animation-delay: 0.5s;
}
.form-group:nth-child(6) .input-group {
  animation-delay: 0.6s;
}

.input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(76, 159, 162, 0.15);
}

.input-group-text {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-right: none;
  color: #6c757d;
  border-radius: 12px 0 0 12px;
  min-width: 46px;
  justify-content: center;
  transition: all 0.3s ease;
}

.form-control,
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 0 12px 12px 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: #4c9fa2;
  box-shadow: none;
}

.input-group:focus-within .input-group-text {
  border-color: #4c9fa2;
  color: #4c9fa2;
}

/* Password Field Styling */
.password-toggle-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
  z-index: 10;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.password-toggle-icon:hover {
  color: #4c9fa2;
}

/* Password Strength Indicator */
.password-strength {
  height: 6px;
  margin-top: 0.75rem;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #e9ecef;
  overflow: hidden;
  position: relative;
}

.password-strength:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  transition: width 0.3s ease-out;
}

.password-strength-weak:before {
  width: 33.33%;
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.password-strength-medium:before {
  width: 66.66%;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.password-strength-strong:before {
  width: 100%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

/* Button Styling */
.btn-primary {
  background: linear-gradient(135deg, #4c9fa2 0%, #3a7a7c 100%);
  border: none;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  opacity: 1;
}

/* Alert Styling */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  animation: alertSlide 0.5s ease-out;
}

/* Links */
a {
  color: #4c9fa2;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

a:hover {
  color: #3a7a7c;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-section {
    padding: 1rem;
  }

  .register-card {
    margin: 0;
    border-radius: 16px;
  }

  .card-header {
    padding: 1.5rem !important;
  }

  .card-header h2 {
    font-size: 1.75rem !important;
  }

  .card-body {
    padding: 1.5rem !important;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .btn-primary {
    padding: 0.75rem 1.25rem;
  }
}

/* Form Validation Styles */
.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: #10b981;
  background-image: none;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: #ef4444;
  background-image: none;
}

.was-validated .input-group:focus-within .form-control:valid {
  border-color: #10b981;
}

.was-validated .input-group:focus-within .form-control:invalid {
  border-color: #ef4444;
}

/* Google Sign-In Button */
.btn-google {
  background-color: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  padding: 12px 24px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  height: 44px;
}

.btn-google:hover {
  background-color: #f8f9fa;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3);
  color: #202124;
}

.btn-google:active {
  background-color: #f1f3f4;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
}

.btn-google svg {
  margin-right: 12px;
  vertical-align: middle;
}

.btn-google span {
  vertical-align: middle;
}

/* Disabled state for OAuth buttons */
.btn-google.disabled,
.btn-google:disabled {
  opacity: 0.65;
  pointer-events: none;
  background-color: #f8f9fa;
}

/* Gap utility for flex items */
.gap-2 {
  gap: 0.5rem;
}
