/* Modern Login Styles - Similar to Angular Sign-in Component */
.modern-login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modern-login-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.modern-login-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem;
  background: white;
}

@media (min-width: 768px) {
  .modern-login-form-section {
    width: 50%;
    padding: 4rem;
  }
}

.modern-login-form-container {
  width: 100%;
  max-width: 400px;
}

.modern-login-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 2rem;
}

.modern-login-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.modern-login-subtitle {
  display: flex;
  align-items: baseline;
  margin-bottom: 2rem;
  font-weight: 500;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.modern-login-subtitle a {
  color: #3b82f6;
  text-decoration: none;
}

.modern-login-subtitle a:hover {
  text-decoration: underline;
}

.modern-form-group {
  margin-bottom: 1.5rem;
}

.modern-form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

.modern-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s;
  background: white;
  box-sizing: border-box;
}

.modern-form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-form-input.error {
  border-color: #ef4444;
}

.modern-error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.modern-password-wrapper {
  position: relative;
}

.modern-password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 10;
}

.modern-password-toggle:hover {
  color: #374151;
}

.modern-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.modern-checkbox-label {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #374151;
}

.modern-checkbox {
  margin-right: 0.5rem;
  accent-color: #3b82f6;
}

.modern-forgot-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.modern-forgot-link:hover {
  text-decoration: underline;
}

.modern-submit-btn {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modern-submit-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.modern-submit-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.modern-divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: #6b7280;
}

.modern-divider::before,
.modern-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.modern-divider span {
  padding: 0 1rem;
  font-size: 0.875rem;
}

.modern-external-providers {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modern-external-btn {
  flex: 1;
  min-width: 0;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.modern-external-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-1px);
  text-decoration: none;
}

.modern-external-btn i {
  font-size: 1.2rem;
}

.modern-login-background {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 50%;
  background: #1f2937;
  overflow: hidden;
  padding: 4rem;
}

@media (min-width: 768px) {
  .modern-login-background {
    display: flex;
  }
}

.modern-bg-content {
  position: relative;
  z-index: 10;
  max-width: 32rem;
  color: white;
}

.modern-bg-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
}

@media (min-width: 1200px) {
  .modern-bg-title {
    font-size: 4rem;
  }
}

.modern-bg-description {
  font-size: 1.125rem;
  color: #d1d5db;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.modern-bg-avatars {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.modern-avatar-group {
  display: flex;
  margin-right: 1rem;
}

.modern-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 4px solid #1f2937;
  margin-left: -0.5rem;
  object-fit: cover;
  background: #374151;
}

.modern-avatar:first-child {
  margin-left: 0;
}

.modern-avatar-text {
  color: #d1d5db;
  font-weight: 500;
  flex: 1;
  min-width: 200px;
}

/* Background decorative elements */
.modern-bg-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
}

.modern-bg-dots {
  position: absolute;
  top: -4rem;
  right: -4rem;
  opacity: 0.5;
  color: #374151;
}

.modern-alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
}

.modern-alert.alert-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.modern-alert.alert-warning {
  background-color: #fffbeb;
  border-color: #fed7aa;
  color: #92400e;
}

/* Remove default Bootstrap margins and apply modern spacing */
.modern-login-page {
  margin: 0;
  padding: 0;
}

.modern-login-page .container-fluid {
  padding: 0;
}

/* Hide original page header when in modern mode */
.modern-login-page .page-header {
  display: none;
}

/* Spinner for loading state */
.modern-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .modern-login-form-section {
    padding: 1.5rem;
  }

  .modern-login-title {
    font-size: 2rem;
  }

  .modern-bg-title {
    font-size: 2.5rem;
  }

  .modern-checkbox-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .modern-external-providers {
    flex-direction: column;
  }

  .modern-external-btn {
    width: 100%;
  }
}

/* Additional spacing for better visual hierarchy */
.modern-form-group:last-of-type {
  margin-bottom: 1rem;
}

/* Ensure proper stacking */
.modern-login-wrapper > * {
  position: relative;
  z-index: 1;
}
