:root {
  --bg: #0f1512;
  --surface: rgba(25, 32, 28, 0.88);
  --surface-strong: rgba(32, 40, 35, 0.96);
  --border: rgba(232, 238, 231, 0.14);
  --border-strong: rgba(232, 238, 231, 0.24);
  --text: #f5f8f2;
  --muted: #aab8ad;
  --soft: #7e8e83;
  --green: #25d989;
  --green-2: #0aa764;
  --cyan: #64d4d7;
  --danger: #ff7380;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(37, 217, 137, 0.16), transparent 34%),
    radial-gradient(circle at 90% 82%, rgba(100, 212, 215, 0.12), transparent 34%),
    var(--bg);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
  display: grid;
  place-items: center;
  padding: 22px;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-shell {
  width: min(100%, 1040px);
  min-height: min(680px, calc(100vh - 44px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(12, 18, 15, 0.74);
  box-shadow: var(--shadow);
}

.brand-panel {
  position: relative;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  background:
    linear-gradient(145deg, rgba(37, 217, 137, 0.13), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(20, 28, 24, 0.82);
  border-right: 1px solid var(--border);
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #06170e;
  background: linear-gradient(180deg, #8cf0bd, var(--green));
  box-shadow: 0 18px 34px rgba(37, 217, 137, 0.24);
}

.brand-mark svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.85;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 520px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.brand-copy {
  max-width: 500px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 430px;
}

.signal-grid span {
  height: 6px;
  border-radius: 999px;
  background: rgba(232, 238, 231, 0.13);
}

.signal-grid span:nth-child(1),
.signal-grid span:nth-child(3) {
  background: linear-gradient(90deg, var(--green), rgba(100, 212, 215, 0.75));
}

.login-card {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    var(--surface);
}

.login-card-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.secure-dot {
  width: 11px;
  height: 11px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(37, 217, 137, 0.1);
}

h2 {
  margin-bottom: 6px;
  font-size: 1.38rem;
  line-height: 1.2;
}

.login-card-header p,
.login-footnote {
  color: var(--muted);
  line-height: 1.5;
}

.login-error {
  display: none;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 115, 128, 0.35);
  border-radius: 10px;
  color: #ffd8dc;
  background: rgba(255, 115, 128, 0.1);
  font-size: 0.9rem;
}

.login-error.is-visible {
  display: block;
}

.login-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.input-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.input-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--soft);
}

input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

input::placeholder {
  color: rgba(170, 184, 173, 0.65);
}

.input-wrap:focus-within {
  border-color: rgba(37, 217, 137, 0.55);
  box-shadow:
    0 0 0 3px rgba(37, 217, 137, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

button {
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #06170e;
  background: linear-gradient(180deg, #8cf0bd, var(--green));
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow:
    0 18px 34px rgba(37, 217, 137, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

button:hover {
  filter: brightness(1.04);
}

button:focus-visible {
  outline: 3px solid rgba(37, 217, 137, 0.26);
  outline-offset: 3px;
}

button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.35;
}

.login-footnote {
  margin: 22px 0 0;
  font-size: 0.78rem;
}

@media (max-width: 820px) {
  body {
    padding: 0;
  }

  .login-shell {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
  }

  .brand-panel {
    min-height: 300px;
    padding: 30px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .login-card {
    padding: 30px 24px 36px;
  }

  h1 {
    font-size: 2.5rem;
  }
}

/* Premium login polish pass 20260619 */
body::after {
  content: "";
  position: fixed;
  inset: auto 8% 7% auto;
  width: 280px;
  height: 280px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 201, 107, 0.18), transparent 68%);
  filter: blur(2px);
}

.login-card,
.login-panel,
.login-box,
.auth-card {
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

input:focus {
  box-shadow: 0 0 0 4px rgba(85, 240, 167, 0.16), 0 18px 48px rgba(0, 0, 0, 0.14) !important;
}

button[type="submit"] {
  box-shadow: 0 20px 58px rgba(85, 240, 167, 0.24) !important;
}
