/* Shared Mastdan branding and the RPA-style, illustration-free login page. */
.brand-logo {
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
}
.brand-logo img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.brand-logo .brand-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: var(--ui-text, #172d4e);
  letter-spacing: 0;
  text-transform: none;
}
.brand-copy strong { font-size: 15px; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.brand-copy small { color: var(--ui-muted, #6d84a7); font-size: 11px; font-weight: 400; line-height: 1.5; white-space: nowrap; }
body[data-ui-theme="minimal-dark"] .brand-copy { color: #f7fbff; }
body[data-ui-theme="minimal-dark"] .brand-copy small { color: #a9c3dc; }

body[data-ui-theme].xvantage-login-screen {
  --login-story: #dfe9f9;
  --login-surface: #f9fbfd;
  --login-ink: #283d5d;
  --login-muted: #617da5;
  --login-line: #d5e1f2;
  --login-input: #ffffff;
  background: var(--login-surface);
  color: var(--login-ink);
  padding: 0;
}
body[data-ui-theme="minimal-dark"].xvantage-login-screen {
  --login-story: #13263f;
  --login-surface: #0c192b;
  --login-ink: #edf5ff;
  --login-muted: #a9c3dc;
  --login-line: #304967;
  --login-input: #13263f;
}
body[data-ui-theme].xvantage-login-screen::before { content: none; }
body[data-ui-theme].xvantage-login-screen .container {
  position: relative;
  min-height: 100vh;
  max-width: none;
  padding: 0;
  margin: 0;
}
body[data-ui-theme].xvantage-login-screen .header { display: none; }
body[data-ui-theme].xvantage-login-screen #authMessage {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  width: min(420px, calc(100% - 48px));
  margin: 0;
}
body[data-ui-theme].xvantage-login-screen #loginPanel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--login-surface);
  box-shadow: none;
  overflow: visible;
}
.login-story {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 40px clamp(32px, 4.3vw, 72px);
  background: var(--login-story);
}
.login-story .brand-copy strong { font-size: 18px; }
.login-story .brand-copy small { font-size: 11px; }
.login-story-copy { margin: auto 0; padding: 70px 0; }
.login-eyebrow {
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 1.6px;
  color: var(--login-muted);
}
.login-story h1 {
  margin: 22px 0;
  font-size: clamp(36px, 3.35vw, 48px);
  line-height: 1.5;
  letter-spacing: -1px;
  font-weight: 500;
  color: var(--login-ink);
}
.login-story h1 span { color: #5a7bac; }
.login-description { color: var(--login-muted); font-size: 14px; line-height: 2; }
.login-capabilities { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 38px; list-style: none; }
.login-capabilities li { color: var(--login-muted); font-size: 12px; line-height: 1.6; }
.login-capabilities li + li { padding-left: 20px; border-left: 1px solid #aabfde; }
.login-story-footer { color: var(--login-muted); font-size: 11px; line-height: 1.8; }
.login-form-side { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 64px 44px; }
#loginPanel .login-form-fields { width: 100%; max-width: 340px; }
.login-form-eyebrow { color: var(--login-muted); font-size: 12px; line-height: 1.6; margin-bottom: 16px; }
#loginPanel h2 { color: var(--login-ink); font-size: 28px; font-weight: 500; line-height: 1.5; }
.login-form-intro { color: var(--login-muted); font-size: 13px; line-height: 1.9; margin: 10px 0 32px; }
#loginPanel .login-grid { width: 100%; max-width: none; grid-template-columns: minmax(0, 1fr); gap: 20px; }
#loginPanel .form-item { gap: 8px; }
#loginPanel .form-item label { margin: 0; color: var(--login-ink); font-size: 13px; font-weight: 500; }
#loginPanel input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--login-line);
  border-radius: 7px;
  color: var(--login-ink);
  background: var(--login-input);
  box-shadow: none;
  font-size: 14px;
}
#loginPanel input::placeholder { color: var(--login-muted); opacity: .85; }
#loginPanel input:focus { outline: none; border-color: #0755f5; box-shadow: 0 0 0 3px rgba(7,85,245,.12); }
#loginPanel .actions { margin-top: 26px; }
#loginPanel .btn-primary {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #0755f5;
  border-radius: 7px;
  color: #fff;
  background: #0755f5;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
}
#loginPanel .btn-primary:hover:not(:disabled) { background: #0649d6; border-color: #0649d6; transform: none; }
#loginPanel .btn-primary:focus-visible { outline: 3px solid #8cb4ff; outline-offset: 3px; }
#loginPanel .message { line-height: 1.7; overflow-wrap: anywhere; }
.login-form-note { color: var(--login-muted); font-size: 11px; line-height: 1.9; margin-top: 24px; }

@media (max-width: 700px) {
  body[data-ui-theme].xvantage-login-screen #loginPanel { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .login-story { padding: 26px 27px 28px; }
  .login-story .brand-copy strong { font-size: 16px; }
  .login-story-copy { margin: 0; padding: 38px 0 0; }
  .login-story h1 { margin: 0; font-size: 30px; line-height: 1.5; letter-spacing: 0; }
  .login-eyebrow, .login-description, .login-capabilities, .login-story-footer { display: none; }
  .login-form-side { padding: 34px 27px 40px; }
  #loginPanel .login-form-fields { max-width: 420px; }
  .login-form-eyebrow { display: none; }
  #loginPanel h2 { font-size: 24px; }
  .login-form-intro { margin-bottom: 26px; }
  #loginPanel input { font-size: 16px; }
  body[data-ui-theme].xvantage-login-screen #authMessage { position: relative; top: auto; right: auto; width: auto; margin: 16px 20px; }
}
