/* Layout - Perfect viewport centering */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

/* Floating flash messages on top */
.flash-messages {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  max-width: 500px;
  width: 90%;
}

/* Main card - more compact and precise */
.auth-card {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.auth-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.03);
  width: 100%;
  max-width: 400px;
}

/* Card header - integrated branding */
.auth-header {
  margin-bottom: 1.5rem;
}

.app-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a237e; /* Deep corporate blue - more serious than gradient */
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.app-subtitle {
  font-size: 0.9rem;
  color: #607d8b;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}

/* Subtle divider between branding and action */
.auth-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.06) 50%,
    transparent 100%
  );
  margin-bottom: 1.5rem;
}

/* Section label */
.section-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 0.5rem;
}

/* SSO Button - with clear iconography */
.btn-sso {
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  min-height: 44px; /* optimal touch height */
}

.btn-primary {
  --bs-btn-bg: var(--color-primary-blue, #2e0260) !important;
  --bs-btn-border-color: var(--color-primary-blue, #2e0260) !important;
  --bs-btn-hover-bg: var(--color-medium-blue, #4860ad) !important;
  --bs-btn-hover-border-color: var(--color-medium-blue, #4860ad) !important;
  --bs-btn-active-bg: var(--color-sky-blue, #62befa) !important;
  --bs-btn-active-border-color: var(--color-sky-blue, #62befa) !important;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(72, 96, 173, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Integrated error messages */
.error-alert {
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 8px;
  border-left: 3px solid #dc3545;
}

/* SSO button loading state (handled by .ui-state-btn) */

/* Responsive - mobile adjustments */
@media (max-width: 480px) {
  .auth-content {
    padding: 1.5rem;
  }

  .app-title {
    font-size: 1.125rem;
  }

  .app-subtitle {
    font-size: 0.85rem;
  }
}
