:root {
  --ink: #13233a;
  --muted: #718096;
  --blue: #2868f0;
  --blue-dark: #174fc8;
  --line: #e8edf5;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(68, 122, 255, .13), transparent 28rem),
    linear-gradient(135deg, #f3f6fb 0%, #eef2f9 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.portal-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 20px;
}

.portal-card {
  width: min(960px, 100%);
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(31, 55, 92, .16);
}

.portal-intro,
.portal-login {
  min-height: 660px;
  position: relative;
}

.portal-intro {
  color: #fff;
  overflow: hidden;
  padding: 64px 58px;
  background: linear-gradient(150deg, #113a93 0%, #2868f0 58%, #4a86ff 100%);
}

.intro-content {
  position: relative;
  z-index: 2;
}

.intro-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
}

.orb-one {
  width: 360px;
  height: 360px;
  right: -170px;
  top: -110px;
}

.orb-two {
  width: 260px;
  height: 260px;
  left: -150px;
  bottom: -80px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 12px;
  margin-bottom: 62px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
}

.brand-mark span {
  flex: 1;
  border-radius: 3px;
  background: #fff;
}

.brand-mark span:nth-child(1) { height: 45%; opacity: .7; }
.brand-mark span:nth-child(2) { height: 100%; }
.brand-mark span:nth-child(3) { height: 70%; opacity: .84; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.portal-intro h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 700;
}

.intro-copy {
  max-width: 390px;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
}

.feature-list li {
  position: relative;
  margin: 16px 0;
  padding-left: 30px;
  font-size: 14px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.service-status,
.portal-footer {
  position: absolute;
  left: 58px;
  bottom: 30px;
  margin: 0;
  font-size: 12px;
  opacity: .7;
}

.service-status span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #83f3bf;
  box-shadow: 0 0 0 4px rgba(131, 243, 191, .13);
}

.portal-login {
  padding: 58px 58px 90px;
  background: #fff;
}

.login-content {
  max-width: 390px;
  margin: 0 auto;
}

.portal-login h2 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 700;
}

.portal-login .lead {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.portal-login .form-group {
  margin-bottom: 22px;
}

.portal-login label,
.label-row span {
  color: #4c5c72;
  font-size: 12px;
  font-weight: 650;
}

.label-row {
  display: flex;
  justify-content: space-between;
}

.label-row span {
  color: var(--blue);
}

.portal-login .form-control {
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafd;
  font-size: 14px;
  box-shadow: none;
}

.portal-login .form-control:focus {
  border-color: #8aaeff;
  box-shadow: 0 0 0 3px rgba(40, 104, 240, .1);
}

.remember-row {
  margin: -4px 0 25px;
}

.sign-in-button {
  height: 50px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(40, 104, 240, .22);
  font-weight: 700;
}

.sign-in-button:hover {
  background: var(--blue-dark);
}

.login-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #7a5b18;
  font-size: 12px;
  text-align: center;
}

.connection-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcff;
}

.connection-card p {
  margin: 0;
}

.connection-label {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.connection-title {
  padding: 4px 0 2px;
  font-size: 13px;
  font-weight: 700;
}

.connection-meta {
  color: var(--muted);
  font-size: 10px;
}

.proxy-link {
  flex: 0 0 auto;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.portal-footer {
  left: 0;
  width: 100%;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 991px) {
  .portal-intro,
  .portal-login { min-height: auto; }
  .portal-intro { padding: 46px 38px 85px; }
  .portal-login { padding: 46px 38px 85px; }
  .brand-mark { margin-bottom: 38px; }
  .service-status { left: 38px; }
}

@media (max-width: 480px) {
  .portal-shell { padding: 14px; }
  .portal-card { border-radius: 16px; }
  .portal-intro,
  .portal-login { padding-left: 25px; padding-right: 25px; }
  .connection-card { align-items: flex-start; flex-direction: column; }
  .proxy-link { width: 100%; }
}
