:root {
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --accent: #14b8a6;
  --ink: #102033;
  --muted: #64748b;
  --line: #dbe5ef;
  --surface: #ffffff;
  --soft: #f3f8fc;
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  align-items: stretch;
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 48%) 1fr;
  width: 100%;
  min-height: 100vh;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: var(--surface);
}

.form-signin {
  width: 100%;
  max-width: 430px;
  animation: rise .45s ease both;
}

.login-logo {
  width: 132px;
  max-height: 86px;
  object-fit: contain;
  margin-bottom: 28px;
}

.login-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(20, 184, 166, .12);
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.form-signin h1 {
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 850;
  letter-spacing: 0;
}

.form-signin p {
  color: var(--muted);
}

.field {
  position: relative;
  margin-bottom: 16px;
}

.field i {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--muted);
  transform: translateY(-50%);
}

.field .form-control {
  height: 50px;
  padding: 12px 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
}

.field .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 22px;
  font-size: 14px;
}

.btn-login {
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 34px rgba(37, 99, 235, .22);
  font-weight: 800;
}

.login-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 54px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 32, 51, .1), rgba(15, 32, 51, .86)),
    url("../img/medical-saas-hero.svg"),
    linear-gradient(135deg, #1e3a8a, #0f766e);
  background-position: center;
  background-size: cover;
}

.hero-copy {
  max-width: 560px;
}

.hero-copy h2 {
  font-size: 42px;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-copy p {
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.hero-metric {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
}

.hero-metric strong,
.hero-metric span {
  display: block;
}

.hero-metric strong {
  font-size: 22px;
}

.hero-metric span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero {
    min-height: 360px;
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .login-panel,
  .login-hero {
    padding: 28px 18px;
  }

  .hero-copy h2,
  .form-signin h1 {
    font-size: 28px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}
