.lf-auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--lf-primary-soft) 0%, var(--lf-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lf-auth-container {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.lf-auth-card {
  background-color: white;
  border-radius: var(--lf-radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--lf-shadow-elevated);
  border: 1px solid var(--lf-border-light);
  text-align: center;
}

.lf-auth-header {
  margin-bottom: 2rem;
}

.lf-auth-logo {
  font-size: 2.5rem;
  color: var(--lf-primary);
  margin-bottom: 1rem;
}

.lf-auth-title {
  font-size: 1.75rem;
  color: var(--lf-text-main);
  margin-bottom: 0.5rem;
}

.lf-auth-subtitle {
  color: var(--lf-text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.lf-auth-form {
  margin-top: 2rem;
}

.lf-auth-field .lf-input {
  background-color: var(--lf-bg);
  border-color: var(--lf-border);
}

.lf-auth-field .lf-input:focus {
  background-color: white;
}

.lf-auth-actions {
  margin-top: 1.5rem;
}

.lf-auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: var(--lf-text-light);
  font-size: 0.875rem;
}

.lf-auth-divider::before,
.lf-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--lf-border);
}

.lf-auth-divider span {
  padding: 0 1rem;
}

.lf-auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lf-border-light);
  font-size: 0.9375rem;
  color: var(--lf-text-secondary);
}

.lf-auth-link {
  color: var(--lf-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lf-auth-link:hover {
  color: var(--lf-primary-dark);
  text-decoration: underline;
}

/* Role/Language toggle */
.lf-role-toggle,
.lf-language-toggle {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background-color: var(--lf-bg);
  padding: 0.375rem;
  border-radius: var(--lf-radius-lg);
}

.lf-toggle-pill {
  flex: 1;
  padding: 0.875rem 1rem;
  border-radius: var(--lf-radius-md);
  border: 2px solid transparent;
  background-color: transparent;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--lf-text-secondary);
}

.lf-toggle-pill:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.lf-toggle-pill--active {
  background-color: white;
  border-color: var(--lf-primary);
  color: var(--lf-primary);
  box-shadow: var(--lf-shadow-subtle);
}

/* OTP Input */
.lf-otp-container {
  margin: 2rem 0;
}

.lf-otp-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1rem 0;
}

.lf-otp-input {
  width: 3.5rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: var(--lf-radius-md);
  border: 2px solid var(--lf-border);
  background-color: var(--lf-bg);
  color: var(--lf-text-main);
  transition: all 0.2s ease;
}

.lf-otp-input:focus {
  border-color: var(--lf-primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(47, 143, 78, 0.15);
  outline: none;
}

.lf-otp-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lf-otp-hint {
  font-size: 0.875rem;
  color: var(--lf-text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.lf-otp-resend {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--lf-text-secondary);
}

.lf-otp-resend-btn {
  background: none;
  border: none;
  color: var(--lf-primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.lf-otp-resend-btn:hover {
  color: var(--lf-primary-dark);
}

.lf-otp-resend-btn:disabled {
  color: var(--lf-text-light);
  cursor: not-allowed;
  text-decoration: none;
}

/* Terms and conditions */
.lf-terms {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--lf-text-muted);
  text-align: center;
}

.lf-terms a {
  color: var(--lf-primary);
  text-decoration: none;
  font-weight: 500;
}

.lf-terms a:hover {
  text-decoration: underline;
}

/* Social auth buttons */
.lf-social-auth {
  margin-top: 1.5rem;
}

.lf-social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border: 2px solid var(--lf-border);
  background-color: white;
  border-radius: var(--lf-radius-lg);
  font-weight: 500;
  color: var(--lf-text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.lf-social-btn:hover {
  border-color: var(--lf-primary);
  background-color: var(--lf-primary-light);
}

.lf-social-btn-icon {
  font-size: 1.25rem;
}

/* Responsive auth adjustments */
@media (max-width: 480px) {
  .lf-auth-card {
    padding: 2rem 1.5rem;
  }
  
  .lf-auth-title {
    font-size: 1.5rem;
  }
  
  .lf-otp-input {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 360px) {
  .lf-auth-card {
    padding: 1.5rem 1.25rem;
  }
  
  .lf-role-toggle,
  .lf-language-toggle {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .lf-otp-input {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .lf-auth-card {
    padding: 3rem 2.5rem;
  }
}