/* ── Login Page Foundation ──────────────────────────── */
:root {
  --login-gray-50: #f8f9fa;
  --login-gray-100: #f1f3f5;
  --login-gray-200: #e9ecef;
  --login-gray-300: #dee2e6;
  --login-gray-400: #ced4da;
  --login-gray-500: #adb5bd;
  --login-gray-600: #868e96;
  --login-gray-700: #495057;
  --login-gray-800: #343a40;
  --login-gray-900: #212529;
  --login-blue: #2c5fe6;
  --login-blue-hover: #244fd0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--login-gray-900);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.login-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #fff;
}

/* ── Top Bar ───────────────────────────────────────── */
.login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 2rem;
  background: #fff;
  border-bottom: 1px solid var(--login-gray-200);
  flex-shrink: 0;
}

.login-brand {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--login-gray-900);
  text-decoration: none;
  letter-spacing: -.01em;
}

.login-topbar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.login-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--login-gray-200);
  background: none;
  cursor: pointer;
  transition: background .15s;
}

.login-icon-btn:hover {
  background: var(--login-gray-100);
}

.login-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--login-gray-600);
  stroke-width: 2;
  fill: none;
}

/* ── Hero / Main Area ──────────────────────────────── */
.login-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--login-gray-100);
  overflow: hidden;
}

.login-hero {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

/* Background image overlay */
.login-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(245,245,245,.88) 100%);
  z-index: 0;
}

.login-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 120px,
      rgba(200,200,200,.15) 120px,
      rgba(200,200,200,.15) 121px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(200,200,200,.08) 80px,
      rgba(200,200,200,.08) 81px
    );
  z-index: 0;
}

/* Faux architectural background texture */
.login-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(220,220,220,.3) 0%,
      rgba(220,220,220,.05) 15%,
      transparent 25%,
      transparent 35%,
      rgba(210,210,210,.12) 36%,
      rgba(210,210,210,.12) 37%,
      transparent 38%,
      transparent 62%,
      rgba(210,210,210,.12) 63%,
      rgba(210,210,210,.12) 64%,
      transparent 65%,
      transparent 75%,
      rgba(220,220,220,.05) 85%,
      rgba(220,220,220,.3) 100%
    );
  z-index: 0;
}

/* ── Sign-in Card ──────────────────────────────────── */
.login-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
  padding: 2.5rem 3rem;
  width: 100%;
  max-width: 400px;
}

.login-card-kicker {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--login-blue);
  margin-bottom: .75rem;
}

.login-card h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 .75rem;
  color: var(--login-gray-900);
  line-height: 1.2;
}

.login-card-description {
  font-size: .9rem;
  color: var(--login-gray-600);
  line-height: 1.6;
  margin: 0 0 2rem;
}

.login-btn-primary {
  display: block;
  width: 100%;
  padding: .9rem 1.5rem;
  border-radius: 8px;
  border: none;
  background: var(--login-blue);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}

.login-btn-primary:hover {
  background: var(--login-blue-hover);
  color: #fff;
}

.login-divider {
  border: none;
  border-top: 1px solid var(--login-gray-200);
  margin: 2rem 0 1.5rem;
}

.login-card-secondary-text {
  font-size: .8rem;
  color: var(--login-gray-500);
  text-align: center;
  margin: 0 0 .75rem;
}

.login-btn-outline {
  display: block;
  width: 100%;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--login-gray-300);
  background: #fff;
  color: var(--login-gray-800);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.login-btn-outline:hover {
  background: var(--login-gray-50);
  border-color: var(--login-gray-400);
}

/* ── Security Badges ───────────────────────────────── */
.login-badges {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.login-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--login-gray-500);
}

.login-badge svg {
  width: 18px;
  height: 18px;
  stroke: var(--login-gray-400);
  stroke-width: 2;
  fill: none;
}

.login-badge-text {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--login-gray-500);
}

.login-badge-brand {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--login-gray-400);
}

.login-badge-brand-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--login-gray-500);
  margin-left: .25rem;
}

/* ── Footer ────────────────────────────────────────── */
.login-footer {
  background: #fff;
  border-top: 1px solid var(--login-gray-200);
  padding: 1.5rem 2rem;
  flex-shrink: 0;
}

.login-footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.login-footer-brand {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--login-gray-900);
  letter-spacing: -.01em;
}

.login-footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.login-footer-links a {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--login-gray-500);
  text-decoration: none;
  transition: color .15s;
}

.login-footer-links a:hover {
  color: var(--login-gray-700);
}

.login-footer-copy {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--login-gray-400);
  margin-left: auto;
}
