:root {
  color-scheme: light;
  --ib-brand: #0f172a;
  --ib-accent: #0891b2;
  --ib-blue: #2563eb;
  --ib-muted: #64748b;
  --ib-border: #dbe3ee;
}

* { box-sizing: border-box; }

body.ib360-auth-page {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ib-brand);
  background:
    radial-gradient(circle at 18% 12%, rgba(6, 182, 212, 0.22), transparent 30%),
    radial-gradient(circle at 84% 82%, rgba(37, 99, 235, 0.2), transparent 28%),
    linear-gradient(145deg, #020617, #0f2c45 58%, #123f5b);
}

.ib360-login-card {
  width: min(100%, 460px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
}

.ib360-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 26px;
}

.ib360-brand-lockup img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.ib360-platform-logo { height: 52px; }
.ib360-company-logo { height: 44px; max-width: 168px; }
.ib360-brand-divider { width: 1px; align-self: stretch; background: var(--ib-border); }

.ib360-login-eyebrow {
  margin: 0 0 7px;
  color: var(--ib-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ib360-login-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.ib360-login-subtitle {
  margin: 9px 0 26px;
  color: var(--ib-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ib360-auth-error {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
}

.ib360-auth-form { display: grid; gap: 16px; }
.ib360-auth-field { display: grid; gap: 7px; }
.ib360-auth-field label { color: #334155; font-size: 13px; font-weight: 700; }
.ib360-auth-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 13px;
  color: var(--ib-brand);
  background: #fff;
  font: inherit;
  outline: none;
}
.ib360-auth-field input:focus {
  border-color: var(--ib-accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.14);
}
.ib360-password-wrap { position: relative; }
.ib360-password-wrap input { padding-right: 46px; }
.ib360-password-toggle {
  position: absolute;
  inset: 0 4px 0 auto;
  width: 40px;
  border: 0;
  background: transparent;
  color: var(--ib-muted);
  cursor: pointer;
}
.ib360-submit {
  min-height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--ib-accent), var(--ib-blue));
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}
.ib360-submit:hover { filter: brightness(1.04); }
.ib360-login-footnote {
  margin: 20px 0 0;
  color: var(--ib-muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 520px) {
  body.ib360-auth-page { padding: 16px; }
  .ib360-login-card { padding: 24px; border-radius: 16px; }
  .ib360-brand-lockup { gap: 12px; margin-bottom: 22px; }
  .ib360-platform-logo { height: 42px; }
  .ib360-company-logo { height: 36px; max-width: 142px; }
}
