body { background: #fff; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }

/* left: neutral Nuclias brand panel (no client branding here) */
.login-brand { position: relative; overflow: hidden; background: var(--bv-deep); color: #D9D2EE; padding: 32px 48px; display: flex; flex-direction: column; }
.login-brand::after { content: ''; position: absolute; width: 560px; height: 560px; right: -220px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 77, 230, .45), rgba(124, 77, 230, 0) 70%); }
.back { color: #B3A6DA; text-decoration: none; font-size: 13px; font-weight: 500; position: relative; z-index: 1; }
.back:hover { color: #fff; }
.brand-mid { margin: auto 0; max-width: 460px; position: relative; z-index: 1; }
.nb-mark { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.nb-mark img { width: 46px; height: auto; filter: brightness(0) invert(1); }
.nb-mark span { font-size: 22px; color: #fff; letter-spacing: -.2px; }
.nb-mark b { font-weight: 700; }
.brand-mid h1 { color: #fff; font-size: 34px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.5px; }
.brand-mid p { margin: 0 0 22px; font-size: 15px; color: #C2B8E3; }
.brand-mid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.brand-mid li { padding-left: 28px; position: relative; font-size: 14px; }
.brand-mid li::before { content: ''; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #9B7BFF; box-shadow: inset 0 0 0 4px var(--bv-deep), 0 0 0 1px #9B7BFF; }
.powered { font-size: 12px; color: #9586C4; margin: 0; position: relative; z-index: 1; }
.powered b { color: #fff; }

/* right: forms */
.login-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.login-form { width: 100%; max-width: 380px; }
.mobile-mark { display: none; align-items: center; gap: 10px; margin-bottom: 28px; }
.mobile-mark img { width: 38px; height: auto; }
.mobile-mark span { font-size: 19px; color: var(--ink); }
.login-form h2 { margin: 0; font-size: 28px; letter-spacing: -.4px; }
.sub { margin: 4px 0 26px; color: var(--muted); }
.login-form label { display: block; font-size: 13px; font-weight: 500; margin: 14px 0 6px; color: var(--ink-2); }
.login-form input:not([type=checkbox]) { width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.login-form input:focus { outline: none; border-color: var(--bv); box-shadow: 0 0 0 4px rgba(79, 24, 180, .12); }
.pw { position: relative; }
.pw input { padding-right: 70px !important; }
.pw-toggle { position: absolute; right: 6px; top: 6px; height: 34px; border: 0; background: var(--line-2); border-radius: 8px; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.login-form .check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-top: 16px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--bv); }
.error { background: var(--danger-tint); color: var(--danger); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin: 16px 0 0; }
.submit { width: 100%; height: 48px; margin-top: 20px; border: 0; border-radius: 10px; background: var(--bv); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .15s; }
.submit:hover { background: #4313A0; }
.submit:disabled { opacity: .7; cursor: wait; }
.help { font-size: 12px; color: var(--muted); margin-top: 22px; }
.help a { color: var(--bv); }

/* company found */
.company-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #FBFAFE; }
.company-card img { height: 46px; width: auto; max-width: 130px; object-fit: contain; }
.company-card div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.company-card b { font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-card small { font-size: 12px; color: var(--muted); }

/* two-step sign-in & Google */
.otp-input { font-size: 24px !important; letter-spacing: 10px; text-align: center; font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--bv); font-weight: 500; cursor: pointer; font-size: 13px; }
.linkbtn:disabled { color: var(--muted); cursor: default; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border: 1.5px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; transition: background .15s, border-color .15s; }
.google-btn:hover { background: var(--bg); border-color: #CBD5DB; }

@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .mobile-mark { display: flex; }
  .login-form-wrap { align-items: start; padding-top: 56px; }
}

/* contact Branvidia for a new account */
.new-account { margin-top: 26px; padding: 14px 16px; border-radius: 12px; background: var(--bv-tint); display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.new-account b { color: var(--ink); font-size: 13.5px; }
.new-account span { color: var(--ink-2); }
.new-account a { color: var(--bv); font-weight: 600; text-decoration: none; margin-top: 4px; }
.new-account a:hover { text-decoration: underline; }
.legal-note { font-size: 12px; color: var(--muted); margin: 16px 0 0; text-align: center; }
.legal-note a { color: var(--ink-2); }
