/* ============================================================
   login.css — Login Portal Screen Styles
   ============================================================ */

#loginScreen {
  min-height: 100vh;
  display: flex;
  flex: 1;
}

.screen {
  display: block;
}

.screen.active {
  display: flex;
}

/* Left branding panel - Reduced padding for tight alignment */
.login-brand {
  flex: 1.2;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  /* Reduced from 4rem */
}

@media (max-width: 992px) {
  .login-brand {
    display: none;
  }
}

/* Constrained width to prevent text from sprawling across wide viewports */
.login-brand-inner {
  max-width: 440px;
}

/* Reduced from 520px */

.login-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1.8rem;
  /* Reduced from 2.2rem */
  font-weight: 800;
  margin-bottom: 1.5rem;
  /* Tighter layout transition */
}

.login-brand-logo img {
  width: 36px;
  /* Scaled down logo image */
  height: 36px;
  border-radius: var(--radius-md);
}

/* Singleline Headline Display */
.login-brand-headline {
  font-size: 24px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 9.075px;
  white-space: nowrap;
}

.login-brand-headline em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Compact Sub-paragraph */
.login-brand-sub {
  color: var(--muted);
  font-size: 0.9rem;
  /* Reduced font size */
  line-height: 1.5;
  margin-bottom: 2rem;
  /* Reduced spacing gap */
}

/* Feature Grid Adjustments */
.login-brand-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  /* Tighter spacing between feature block elements */
}

.login-brand-feat {
  display: flex;
  gap: 0.85rem;
}

.login-brand-feat-icon {
  font-size: 1.25rem;
  /* Compressed icon visibility */
  line-height: 1;
  padding-top: 2px;
}

.login-brand-feat-text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.login-brand-feat-text {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Right login card panel - Maintained proportions for contrast balance */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative;
}

.login-logo {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.login-logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
}

@media (max-width: 992px) {
  .login-logo {
    display: flex;
  }
}

.login-form-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-head);
}

.login-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Setup alert banner */
.setup-banner {
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.25);
  color: var(--accent3);
  padding: 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  text-align: left;
  line-height: 1.4;
}

.setup-banner code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 4px;
  border-radius: 4px;
}

.setup-banner.hidden {
  display: none;
}

/* Login action buttons */
.login-action-btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1rem;
}

.btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}

.btn-google:hover {
  background: #f9fafb;
  transform: translateY(-2px);
}

.google-logo-svg {
  width: 18px;
  height: 18px;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 1.5rem 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.login-divider:not(:empty)::before {
  margin-right: .75em;
}

.login-divider:not(:empty)::after {
  margin-left: .75em;
}

.btn-guest {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-guest:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.login-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2rem;
  line-height: 1.4;
}

.login-contact {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.login-contact strong {
  color: var(--text);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.3rem;
}

.login-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.login-contact a:hover {
  color: var(--accent4);
  text-decoration: underline;
}