/* Accounts Shared Styles */
.auth-main {
  min-height: 100vh;
  width: 100%;
  background: white;
}

.auth-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  display: flex;
  min-height: 500px;
  max-height: 600px;
}

.auth-illustration {
  width: 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: url('../assets/images/login-banner-low.jpg') center center no-repeat;
  background-size: cover;
  padding: 2rem 1.5rem;
}

.illustration-container {
  display: none;
}

.illustration-img {
  display: none;
}

.auth-form {
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
  background: white;
}

.form-container {
  width: 100%;
  max-width: 380px;
}

.branding-container {
  text-align: center;
  margin-bottom: 1.5rem;
}

.branding-container .logo-container {
  display: none;
}

.branding-container img {
  display: none;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-subtitle {
  color: #718096;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f7fafc;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
  border-color: #6f42c1;
  background: white;
  outline: none;
}

.form-control.is-invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.input-group {
  position: relative;
}

.input-group-text {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-left: none;
  border-radius: 0 12px 12px 0;
  color: #6f42c1;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
}

.input-group-text:hover {
  background: #edf2f7;
  color: #5a2d9a;
}

.input-group .form-control {
  border-right: none;
  border-radius: 12px 0 0 12px;
}

.btn {
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #3c93ffff 0%, #bf0af5ff 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
}

.btn-primary:disabled {
  background: #cbd5e0;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-outline-primary {
  background: transparent;
  color: #6f42c1;
  border: 2px solid #6f42c1;
}

.btn-outline-primary:hover {
  background: #6f42c1;
  color: white;
  transform: translateY(-2px);
}

.alert {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border: none;
  font-size: 0.95rem;
}

.alert-success {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

.alert-danger {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  color: white;
}

.alert-info {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: white;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 4px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #6f42c1;
  border-color: #6f42c1;
}

.form-check-label {
  color: #4a5568;
  font-size: 0.9rem;
  cursor: pointer;
}

.text-muted {
  color: #718096 !important;
}

.text-decoration-none {
  text-decoration: none;
}

.text-decoration-none:hover {
  text-decoration: underline;
}

.cf-turnstile {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

.error-message {
  color: #e53e3e !important;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.error-message::before {
  content: "⚠";
  font-size: 1rem;
}

.success-message {
  color: #38a169;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.success-message::before {
  content: "✓";
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-wrapper {
    padding: 0.5rem;
  }

  .auth-container {
    flex-direction: column;
    max-width: 100%;
    min-height: auto;
    max-height: none;
  }

  .auth-illustration {
    width: 100%;
    height: 180px;
    padding: 1rem;
  }

  .illustration-img {
    max-height: 120px;
  }

  .auth-form {
    width: 100%;
    padding: 1.5rem 1rem;
  }

  .form-container {
    max-width: 100%;
  }

  .auth-title {
    font-size: 1.25rem;
  }
}

/* Animation for form elements */
.form-control,
.btn,
.alert {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state for buttons */
.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}