@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #eef7ff;
  --muted: #8fa8bd;
  --line: rgba(126, 181, 215, 0.2);
  --cyan: #55e0d4;
  --navy: #06192b;
  --panel: #0b2238;
  --error: #ff8592;
  --success: #6ee7b7;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: #051522;
  color: var(--ink);
  font: 14px Inter, Arial, sans-serif;
}

.login-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 14% 10%, rgba(16, 72, 91, 0.62), transparent 35%),
    radial-gradient(circle at 88% 90%, rgba(22, 51, 91, 0.48), transparent 38%),
    #051522;
}

.login-shell {
  width: min(1120px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7, 24, 41, 0.92);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.55);
}

.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 64px;
  background-color: #08233a;
  background-image:
    linear-gradient(90deg, rgba(5, 20, 38, 0.16), rgba(5, 20, 38, 0.45)),
    linear-gradient(180deg, rgba(5, 20, 38, 0.12) 25%, rgba(5, 20, 38, 0.7) 100%),
    url('assets/login-data-tech-bg.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.login-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 15, 28, 0.18), transparent 55%),
    linear-gradient(180deg, transparent 55%, rgba(4, 15, 28, 0.36));
}

.visual-content {
  position: relative;
  z-index: 2;
  max-width: 470px;
}

.login-logo {
  width: 98px;
  height: 98px;
  margin-bottom: 38px;
  object-fit: contain;
  border: 5px solid rgba(255, 255, 255, 0.08);
  outline: 1px solid #f0c64d;
  border-radius: 15px;
  background: white;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.login-visual h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.visual-content > p {
  margin: 0;
  color: #b0c7d6;
  font-size: 16px;
  line-height: 1.7;
}

.system-status {
  position: absolute;
  z-index: 2;
  left: 64px;
  right: 64px;
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #9db6c7;
  font: 10px 'JetBrains Mono', monospace;
  letter-spacing: 0.07em;
}

.system-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.login-card-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px 32px;
  background: linear-gradient(160deg, rgba(12, 31, 50, 0.99), rgba(7, 20, 35, 0.99));
}

.login-card { width: 100%; max-width: 420px; margin: auto; }
.login-card[hidden] { display: none; }
.login-card-heading { margin-bottom: 31px; }
.eyebrow {
  display: block;
  color: #75dbd0;
  font: 600 10px 'JetBrains Mono', monospace;
  letter-spacing: 0.18em;
}
.login-card-heading h2 {
  margin: 11px 0 9px;
  font-size: 30px;
  letter-spacing: -0.045em;
}
.login-card-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.login-card > label, .label-row label {
  display: block;
  margin: 18px 0 8px;
  color: #c8d8e5;
  font-size: 11px;
  font-weight: 600;
}
.label-row { display: flex; align-items: end; justify-content: space-between; }

.field {
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #31506a;
  border-radius: 8px;
  background: #071827;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(85, 224, 212, 0.1); }
.field > span { width: 44px; color: #6f8da2; text-align: center; font: 11px 'JetBrains Mono', monospace; }
.field input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 12px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font: 13px Inter, sans-serif;
}
.field input::placeholder { color: #5e7689; }

.text-button, .back-button, .password-toggle {
  border: 0;
  background: transparent;
  color: #67d9cf;
  cursor: pointer;
  font: 600 10px Inter, sans-serif;
}
.password-toggle { height: 100%; padding: 0 14px; color: #8eabc0; }
.back-button { margin: 0 0 28px; padding: 0; color: #9eb6c8; }

.form-message { min-height: 20px; margin: 10px 0 5px; color: var(--error); font-size: 11px; line-height: 1.45; }
.form-message.success { color: var(--success); }
.login-options {
  display: flex;
  justify-content: space-between;
  margin: 0 0 17px;
  color: #718da1;
  font: 9px 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

.login-submit {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(110deg, #35c9bd, #5f89f5);
  color: #041421;
  cursor: pointer;
  font: 700 13px Inter, sans-serif;
  box-shadow: 0 12px 30px rgba(42, 182, 187, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 17px 36px rgba(42, 182, 187, 0.28); }
.login-submit:disabled { opacity: 0.58; cursor: wait; transform: none; }
.login-submit b { font-size: 20px; }

.security-note {
  display: flex;
  gap: 11px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #5fd8cd;
}
.security-note p { margin: 0; }
.security-note b { display: block; color: #bcd0dd; font-size: 10px; }
.security-note small { display: block; margin-top: 4px; color: #708a9d; font-size: 9px; line-height: 1.5; }

.login-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 27px 0 0;
  color: #567084;
  font: 8px 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
}
.password-strength { display: flex; gap: 5px; margin-top: 12px; }
.password-strength i { height: 3px; flex: 1; border-radius: 5px; background: #263d50; }
.password-strength[data-score='1'] i:nth-child(-n+1) { background: #ff7d88; }
.password-strength[data-score='2'] i:nth-child(-n+2) { background: #f6be68; }
.password-strength[data-score='3'] i:nth-child(-n+3),
.password-strength[data-score='4'] i { background: #6ee7b7; }

@media (max-width: 860px) {
  .login-gate { padding: 0; }
  .login-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .login-visual { min-height: 270px; justify-content: flex-start; padding: 34px 28px; }
  .login-visual { background-position: center 43%; }
  .login-logo { width: 66px; height: 66px; margin-bottom: 24px; }
  .login-visual h1 { margin-bottom: 10px; font-size: 36px; }
  .visual-content > p { font-size: 13px; }
  .system-status { display: none; }
  .login-card-wrap { min-height: 520px; padding: 38px 26px; }
}

@media (max-width: 460px) {
  .login-visual { min-height: 225px; }
  .login-visual h1 { font-size: 32px; }
  .login-card-wrap { padding: 32px 22px; }
  .login-card-heading h2 { font-size: 27px; }
  .login-footer { display: grid; gap: 6px; }
}
