/* Login page only. Brand colours come from the DataPure logo. */
.login-body {
  --brand: #00aeef; --brand-dark: #0072bc; --brand-deep: #0a3d7a;
  --card: #ffffff; --field: #f4f7fb; --field-border: #dbe3ee;
  min-height: 100vh; margin: 0; padding: 0;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(0, 174, 239, .18), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(0, 114, 188, .16), transparent 60%),
    #eef3f9;
}

.login-shell {
  width: 100%; min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--card); animation: login-in .5s ease-out both;
}
@keyframes login-in { from { opacity: 0; } to { opacity: 1; } }

/* ---- left: brand panel ---- */
.login-hero {
  position: relative; overflow: hidden; color: #fff; padding: 56px 64px 44px;
  display: flex; flex-direction: column;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 55%, var(--brand-deep) 100%);
}
.login-hero::before, .login-hero::after {      /* soft decorative rings */
  content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .14);
}
.login-hero::before { width: 620px; height: 620px; right: -240px; bottom: -240px; }
.login-hero::after  { width: 380px; height: 380px; right: -120px; bottom: -120px; border-color: rgba(255, 255, 255, .2); }
.hero-globe {                                    /* big faint logo in the corner */
  position: absolute; width: 340px; right: -60px; top: 30%; opacity: .1;
  filter: brightness(0) invert(1); pointer-events: none;
}
.login-brand { display: flex; align-items: center; gap: .65rem; position: relative; }
.login-brand img { width: 52px; height: auto; filter: brightness(0) invert(1); }
.login-brand span { font: 700 2.1rem/1 Georgia, "Times New Roman", serif; letter-spacing: -.01em; }
.hero-copy { margin-top: auto; padding-top: 56px; position: relative; }
.hero-copy h2 { font-size: 2.6rem; line-height: 1.15; margin: 0 0 .7rem; font-weight: 700; }
.hero-copy p { margin: 0 0 1.6rem; opacity: .9; font-size: 17px; max-width: 30rem; }
.hero-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.hero-list li { display: flex; align-items: center; gap: .6rem; font-size: 15px; }
.hero-list svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.hero-foot { position: relative; margin-top: 2.2rem; font-size: 13px; opacity: .75; }

/* ---- right: form ---- */
.login-card { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.login-card > * { width: 100%; max-width: 400px; margin-left: auto; margin-right: auto; }
.login-card .login-title { font-size: 2.2rem; margin-top: 0; margin-bottom: .25rem; }
.login-card .caption { margin-top: 0; margin-bottom: 1.8rem; font-size: 15px; }
.login-card .flabel { font-weight: 600; font-size: 14px; margin-bottom: .35rem; }
.login-card .field { margin-bottom: 1.15rem; }
.input-wrap { position: relative; }
.input-wrap > svg.lead {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.login-card input[type=text], .login-card input[type=password] {
  width: 100%; height: 48px; padding: 0 44px 0 42px; font-size: 16px;
  background: var(--field); border: 1.5px solid var(--field-border); border-radius: 12px;
  transition: border-color .15s, background .15s;
}
.login-card input:focus {
  border-color: var(--brand); background: var(--card);
}
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; background: none; border-radius: 8px; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--brand); background: rgba(0, 174, 239, .1); outline: none; }
.pw-toggle svg { width: 19px; height: 19px; }

.login-btn {
  width: 100%; height: 50px; margin-top: .6rem; border: 0; border-radius: 12px; cursor: pointer;
  font: 600 16px/1 inherit; font-family: inherit; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  transition: transform .12s, filter .15s;
}
.login-btn:hover { filter: brightness(1.06); }
.login-btn:active { transform: translateY(1px); }
.login-btn:focus-visible { outline: 3px solid rgba(0, 174, 239, .45); outline-offset: 2px; }
.login-btn:disabled { opacity: .7; cursor: wait; }
.login-btn svg { width: 18px; height: 18px; }
.login-card #login-error .alert { margin: 1rem 0 0; border-radius: 12px; }
.login-secure { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 1.6rem; font-size: 13px; color: var(--muted); }
.login-secure svg { width: 14px; height: 14px; }

/* ---- tablet / phone: brand panel becomes a header ---- */
@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-hero { padding: 28px 28px 26px; }
  .hero-copy { padding-top: 22px; }
  .hero-copy h2 { font-size: 1.6rem; }
  .hero-copy p { margin-bottom: 0; font-size: 15px; }
  .hero-list, .hero-foot, .hero-globe { display: none; }
  .login-card { padding: 32px 28px 30px; }
}
@media (prefers-reduced-motion: reduce) { .login-shell { animation: none; } }
