/* Login shell. Tokens match doc/plans/2026-10-15_Inetadmin_Panel_Design mock.
   Scoped to body.auth-page so authenticated panel CSS is untouched. */

:root {
  --navy: #16202D;
  --blue: #1D4ED8;
  --line: #E4E7EC;
  --bg: #F7F8FA;
  --panel: #FFFFFF;
  --text: #16202D;
  --text-soft: #6B7686;
  --green: #178A4C;
  --green-bg: #E9F7EF;
  --amber: #8A6A16;
  --amber-bg: #FDF3E4;
  --red: #B4232C;
  --red-bg: #FCEBEC;
  --radius: 6px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}

.auth-shell {
  display: flex;
  min-height: 100vh;
}

.auth-side {
  flex: 0 0 38%;
  max-width: 440px;
  background: var(--navy);
  color: #DCE3EC;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 40px;
  box-sizing: border-box;
}

.auth-logos {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 16px;
}

.auth-logo-panel {
  display: block;
  width: 100%;
  height: auto;
}

.auth-logo-brands {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.auth-logo-brands a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  line-height: 0;
}

.auth-logo-brands img {
  display: block;
  width: 100%;
  height: 36px;
  object-fit: contain;
}

.auth-side .pitch h1 {
  color: #fff;
  font-size: 21px;
  line-height: 1.32;
  margin: 34px 0 16px;
  font-weight: 700;
}

.auth-side .pitch ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-side .pitch li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: 12.8px;
  color: #C9D5E4;
}

.auth-side .pitch li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6EA8FF;
  font-weight: 700;
}

.auth-side .copyright {
  font-size: 11.5px;
  color: #7C8CA0;
  margin-top: 28px;
}

.auth-side .copyright a {
  color: #9FB0C4;
}

.auth-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 52px 32px;
  box-sizing: border-box;
}

.auth-card {
  width: 430px;
  max-width: 100%;
}

.auth-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

.auth-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 22px;
  line-height: 1.5;
}

.auth-banner {
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.auth-banner.ok {
  background: var(--green-bg);
  color: var(--green);
}

.auth-banner.warn {
  background: var(--amber-bg);
  color: var(--amber);
}

.auth-card form,
.auth-card form table,
.auth-card form tbody,
.auth-card form tr,
.auth-card form td {
  display: block;
  width: 100% !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  box-sizing: border-box;
}

.auth-card form img {
  display: none;
}

.auth-card .FormParamName,
.auth-card .FrmRPrmNm {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 5px;
  text-align: left;
}

.auth-card .FormParamValue {
  margin: 0 0 14px;
  text-align: left;
}

.auth-card .FormParamValue input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  font: inherit;
  color: var(--text);
  background: var(--panel);
}

.auth-card .FormErrMsg {
  background: var(--red-bg);
  color: var(--red);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 16px;
  text-align: left;
}

.auth-card .FormErrMsg center {
  display: block;
  text-align: left;
}

.auth-card .FormSeparator,
.auth-card .FormFootnote {
  display: none;
}

.auth-card input[type="submit"] {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 11px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.auth-card input[type="submit"]:hover {
  background: #1740B0;
}

.auth-card noscript {
  display: block;
  margin-top: 16px;
  background: var(--amber-bg);
  color: var(--amber);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .auth-side {
    display: none;
  }

  .auth-main {
    padding: 28px 16px;
  }
}
