/* Login page — faithful port of login.component.scss (two-pane, light, Inter). */
.signin-layout {
  --indigo-500: #3B82F6; --indigo-600: #2563EB; --indigo-700: #1D4ED8;
  --ink-900: #0B1020; --ink-800: #1F2937; --ink-700: #1F2937; --ink-500: #4B5563;
  --ink-400: #6B7280; --ink-300: #9CA3AF; --ink-200: #E5E7EB; --ink-100: #F3F4F6; --ink-50: #F9FAFB;
  --surface: #FFFFFF; --surface-border: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04); --shadow-md: 0 4px 12px rgba(16, 24, 40, .06);
  --radius-md: 10px;
  position: fixed; inset: 0; overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink-900); -webkit-font-smoothing: antialiased;
}

.login-pane { display: flex; flex-direction: column; padding: 48px 56px; min-height: 100vh; box-sizing: border-box; }

/* ── Brand pane ── */
.login-pane--brand {
  background:
    radial-gradient(at 90% 10%, rgba(147, 197, 253, .40) 0%, transparent 55%),
    radial-gradient(at 10% 90%, rgba(29, 78, 216, .45) 0%, transparent 55%),
    linear-gradient(140deg, #2563EB 0%, #1D4ED8 45%, #1E40AF 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .92); justify-content: space-between; position: relative; overflow: hidden;
}
.brand-decor { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.brand-header, .brand-hero { position: relative; z-index: 1; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark__logo { height: 32px; width: auto; display: block; filter: brightness(0) invert(1); }
.brand-product-name { margin: 8px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: rgba(255, 255, 255, .85); text-transform: uppercase; }
.brand-hero { max-width: 520px; margin: auto 0; }
.brand-headline { font-size: 38px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: #fff; margin: 0 0 18px; }
.brand-subhead { font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .78); margin: 0 0 36px; max-width: 480px; }
.brand-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.brand-features li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.brand-features li > div { display: flex; flex-direction: column; gap: 3px; }
.brand-features li strong { font-size: 14px; font-weight: 600; color: #fff; }
.brand-features li > div > span { font-size: 13.5px; color: rgba(255, 255, 255, .72); line-height: 1.55; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 8px; background: rgba(255, 255, 255, .18); color: #fff;
  border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); margin-top: 1px;
}
.feature-icon svg { width: 16px; height: 16px; display: block; }

/* ── Form pane ── */
.login-pane--form { background: #fff; position: relative; }
.form-shell { width: 100%; max-width: 400px; margin: auto; padding: 32px 0; }
.form-icon {
  display: flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  margin: 0 auto 22px; border-radius: 16px; background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: #2563EB; border: 1px solid #DBEAFE;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .06), inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.form-icon svg { width: 28px; height: 28px; display: block; }
.form-header { margin-bottom: 28px; text-align: center; }
.form-header h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); margin: 0 0 8px; }
.form-header p { font-size: 14px; color: var(--ink-400); margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px;
  padding: 0 16px; font-size: 15px; font-weight: 600; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn__icon { width: 18px; height: 18px; flex-shrink: 0; }
/* Keycloak is the primary platform sign-in, so it gets the filled treatment
   while Microsoft stays secondary/outlined below the divider. */
.btn--keycloak { background: var(--indigo-600); border-color: var(--indigo-600); color: #fff; text-decoration: none; }
.btn--keycloak:hover { background: var(--indigo-700); border-color: var(--indigo-700); box-shadow: 0 4px 14px rgba(79, 70, 229, .30); }

.btn--email-signin {
  background: var(--indigo-600); color: #fff; border: 0; border-radius: 8px; height: 44px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background .15s, box-shadow .15s;
}
.btn--email-signin:hover { background: var(--indigo-700); box-shadow: 0 4px 14px rgba(79, 70, 229, .30); }

.signup-cta { margin: 16px 0 0; font-size: 13px; text-align: center; color: #6B7280; }
.signup-cta__link { background: none; border: none; padding: 0; margin-left: 4px; font: inherit; font-weight: 600; color: #2563EB; cursor: pointer; text-decoration: none; }
.signup-cta__link:hover { text-decoration: underline; }
.signin-unavailable {
  margin: 0; padding: 12px 14px; background: var(--color-danger-bg); border: 1px solid #FECACA;
  border-radius: var(--radius-md); font-size: 12.5px; color: #991B1B; text-align: center; line-height: 1.5;
}

.legal { margin: 16px 0 0; font-size: 12px; text-align: center; color: var(--ink-400); line-height: 1.55; }
.legal a { color: var(--ink-700); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.help-line { margin: 14px 0 0; font-size: 12.5px; text-align: center; color: #6B7280; }
.help-line__contact { color: #2563EB; font-weight: 500; margin-left: 4px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.help-line__contact:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .signin-layout { position: static; grid-template-columns: 1fr; height: auto; }
  .login-pane { min-height: auto; padding: 32px 24px; }
  .login-pane--brand { border-right: none; border-bottom: 1px solid var(--surface-border); }
  .brand-headline { font-size: 28px; }
  .brand-hero { margin: 24px 0; }
}
