/* Ensure full-screen coverage */
/* html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}
 */


/* Main login page container */
.auth-page {
  background-color: #ffffff;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Split screen layout */
.login-container {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* Left side - form */
.login-form-container {
  width: 40%;
  padding: 3% 6%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  max-height: 100vh;
}

/* Right side - image */
.login-image-container {
  width: 60%;
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.login-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Welcome text */
.welcome-text {
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  background-color: #fff;
  padding-top: 10px;
  padding-bottom: 10px;
  z-index: 10;
}

.welcome-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.welcome-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

/* Form elements */
.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.3rem;
  display: block;
}

.form-input {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  margin-bottom: 0.8rem;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #e94a4a;
  box-shadow: 0 0 0 3px rgba(233, 74, 74, 0.1);
}

/* Form layout */
.form-row {
  display: flex;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.form-group {
  flex: 1;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.registration-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

/* Checkbox and forgot password row */
.form-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-checkbox {
  margin-right: 0.5rem;
}

.forgot-password {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.forgot-password:hover {
  color: #0077b6;
  text-decoration: none;
}

/* Login buttons */
.login-btn {
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.8rem;
  transition: background-color 0.2s, transform 0.1s;
}

.signin-btn {
  background-color: #00b4d8;
  color: white;
}

.signin-btn:hover {
  background-color: #0077b6;
  transform: translateY(-1px);
}

.google-btn {
  background-color: white;
  color: #333;
  border: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.google-btn:hover {
  background-color: #f8f8f8;
}

.google-icon {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
}

/* Sign up link */
.signup-link-container {
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #666;
}

.signup-link {
  color: #0077b6;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.25rem;
}

.signup-link:hover {
  text-decoration: underline;
}

/* Message alerts */
.alert-message {
  padding: 8px;
  border-radius: 5px;
  margin-bottom: 12px;
  font-size: 13px;
  text-align: center;
  position: sticky;
  top: 50px;
  z-index: 5;
}

.alert-error {
  background-color: rgba(233, 74, 74, 0.1);
  color: #e94a4a;
}

.alert-success {
  background-color: rgba(45, 206, 137, 0.1);
  color: #2dce89;
}

.alert-warning {
  background-color: rgba(251, 189, 35, 0.1);
  color: #f0932b;
}

/* Captcha styling */
.captcha-container {
  background: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 15px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.captcha-text {
  font-family: monospace;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 5px;
  text-align: center;
  color: #333;
  user-select: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.captcha-refresh {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  transition: transform 0.2s;
}

.captcha-refresh:hover {
  transform: rotate(90deg);
  color: #0077b6;
}

/* Step transitions */
.step-transition {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.animate-fade {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Back button */
.back-link {
  color: #666;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: #0077b6;
}

.back-link::before {
  content: "←";
  margin-right: 5px;
}

/* Responsive design */
@media (max-width: 992px) {
  .login-container {
    flex-direction: column;
  }
  
  .login-form-container,
  .login-image-container {
    width: 100%;
  }
  
  .login-image-container {
    height: 30vh;
    order: -1;
  }
  
  .login-form-container {
    padding: 1.5rem;
    height: 70vh;
  }
}

/* Make registration form scrollable while keeping header visible */
.registration-form-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.registration-form {
  overflow-y: auto;
  padding-right: 10px;
  margin-right: -10px; /* Compensate for scrollbar */
  flex: 1;
}