:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f4f6fa;
  --brand: #4f46e5;
  --brand-strong: #4038c8;
  --line: #dfe4ec;
  --muted: #697386;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; letter-spacing: 0; }
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(460px, 42%) minmax(440px, 1fr);
  background: #f4f6fa;
}
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(32px, 5vh, 58px) clamp(34px, 5vw, 76px);
  overflow: hidden;
  color: #fff;
  background: #171d2b;
}
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 1px;
  background: rgba(255,255,255,.12);
}
.brand-identity { display: flex; align-items: center; gap: 13px; }
.brand-identity img { width: 44px; height: 44px; padding: 5px; border-radius: 8px; background: #fff; }
.brand-identity h1 { margin: 0; font-size: 23px; letter-spacing: 0; }
.brand-identity p { margin: 3px 0 0; color: #aeb8ca; font-size: 12px; }
.login-announcements {
  margin-top: clamp(40px, 8vh, 86px);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}
.login-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.login-section-title span { color: #8f9bb0; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.login-section-title strong { font-size: 15px; }
.login-announcement-list { display: grid; gap: 0; min-height: 55px; }
.login-announcement-item {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.09);
}
.login-announcement-item:first-child { border-top: 0; }
.login-announcement-item b { color: #7d86ff; font-size: 11px; line-height: 1.55; }
.login-announcement-item p { margin: 0; color: #e6eaf1; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.login-announcement-item time { display: block; margin-top: 3px; color: #7f8ba0; font-size: 10px; }
.login-empty { margin: 8px 0; color: #8792a6; font-size: 13px; }
.login-contact { margin-top: auto; padding-top: 26px; }
.login-contact-copy { margin: -4px 0 14px; color: #9ba6b8; font-size: 12px; line-height: 1.55; }
.login-qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.login-qr-card {
  display: grid;
  grid-template-columns: 70px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  min-height: 94px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: #202838;
}
.login-qr-card img,.login-qr-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 5px;
  background: #fff;
}
.login-qr-card img { display: block; padding: 4px; object-fit: contain; }
.login-qr-card img[hidden],.login-qr-placeholder[hidden] { display: none; }
.login-qr-placeholder { display: grid; place-items: center; color: #9aa4b6; font-size: 11px; }
.login-qr-card strong { min-width: 0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.auth-panel {
  align-self: center;
  width: min(420px, calc(100vw - 40px));
  margin: 38px auto;
}
.auth-panel header,.login-heading { margin-bottom: 26px; }
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-bottom:27px;padding:4px;border:1px solid var(--line);border-radius:8px;background:#fff}
.auth-tabs button{height:38px;border:0;border-radius:6px;color:#667085;background:transparent;cursor:pointer}
.auth-tabs button.active{color:#fff;background:var(--brand);font-weight:800}
.auth-panel header > span,.login-heading > span { color: var(--brand); font-size: 11px; font-weight: 800; }
.auth-panel h2 { margin: 8px 0 7px; font-size: 27px; letter-spacing: 0; }
.auth-panel p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
form { display: grid; gap: 17px; }
label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.auth-consent { display: flex; align-items: flex-start; gap: 8px; color: #667085; font-size: 12px; font-weight: 500; line-height: 1.55; }
.auth-consent input { width: 16px; height: 16px; flex: 0 0 auto; margin: 1px 0 0; }
.auth-consent a,.auth-footer a { color: #0d6f56; text-decoration: underline; }
input {
  width: 100%;
  height: 46px;
  border: 1px solid #cfd6e2;
  border-radius: 7px;
  padding: 0 12px;
  color: #171923;
  background: #fff;
  outline: none;
}
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.11); }
.auth-code-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.auth-code-row button {
  min-width: 108px;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #cfd6e2;
  border-radius: 7px;
  color: #0d6f56;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.auth-code-row button:hover { border-color: #0d6f56; }
.auth-code-row button:disabled { color: #7a8582; cursor: not-allowed; opacity: .7; }
.auth-link {
  display: block;
  margin: 15px auto 0;
  padding: 2px 4px;
  border: 0;
  color: #0d6f56;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.auth-link:hover { color: #085c47; text-decoration: underline; }
button.primary {
  height: 47px;
  margin-top: 5px;
  border: 1px solid var(--brand);
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
}
button.primary:hover { background: var(--brand-strong); }
button.primary:disabled { opacity: .55; cursor: wait; }
.registration-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 11px 12px;
  border-left: 3px solid #19a974;
  background: #edf8f4;
  color: #4d5b69;
  font-size: 12px;
}
.registration-note i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #19a974; }
.auth-message { min-height: 22px; margin-top: 15px; color: #c93843; font-size: 13px; }
.auth-message[data-ok="true"] { color: #087a55; }
.auth-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; padding: 0 20px 28px; color: #667085; font-size: 12px; }
@media (max-width: 980px) {
  .auth-layout { grid-template-columns: minmax(360px, 43%) minmax(400px, 1fr); }
  .auth-brand { padding-inline: 28px; }
  .login-qr-card { grid-template-columns: 58px minmax(0,1fr); }
  .login-qr-card img,.login-qr-placeholder { width: 58px; height: 58px; }
}
@media (max-width: 760px) {
  .auth-layout { display: block; }
  .auth-brand { min-height: auto; padding: 24px 20px 26px; }
  .login-announcements { margin-top: 25px; }
  .login-contact { margin-top: 22px; padding-top: 0; }
  .auth-panel { margin: 34px auto; }
}
@media (max-width: 430px) {
  .login-qr-grid { grid-template-columns: 1fr; }
  .login-qr-card { grid-template-columns: 64px minmax(0,1fr); }
  .login-qr-card img,.login-qr-placeholder { width: 64px; height: 64px; }
  .auth-code-row { grid-template-columns: 1fr; }
  .auth-code-row button { width: 100%; }
}

@view-transition { navigation: auto; }
.auth-site-header { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px,4vw,66px); border-bottom: 1px solid rgba(255,255,255,.12); color: #f7faf9; background: rgba(8,12,12,.82); backdrop-filter: blur(18px); }
.auth-site-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.auth-site-brand-media { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; overflow: hidden; color: #fff; background: #127b60; }
.auth-site-brand-media img { width: 100%; height: 100%; object-fit: contain; }
.auth-site-brand-media b { grid-area: 1/1; font-size: 17px; }
.auth-site-brand-media img:not([hidden]) + b { display: none; }
.auth-site-brand>span:last-child { display: grid; gap: 1px; }
.auth-site-brand strong { font-size: 15px; }
.auth-site-brand small { color: #899593; font-size: 8px; }
.auth-site-header nav { display: flex; align-items: center; gap: 8px; }
.auth-site-header nav a { padding: 9px 13px; border-radius: 7px; color: #c8d0ce; text-decoration: none; font-size: 12px; font-weight: 700; }
.auth-site-header nav a:hover { color: #d8ff63; background: rgba(255,255,255,.07); }
.auth-layout { padding-top: 66px; background: #0b0f0f; }
.auth-brand { min-height: calc(100vh - 66px); padding-top: clamp(30px,5vh,54px); background: #101615; isolation: isolate; }
.auth-brand-film { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-brand::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(5,8,8,.55),rgba(6,10,9,.9) 65%,#08100e); }
.brand-identity,.login-announcements,.login-contact { position: relative; z-index: 1; }
.login-announcements { margin-top: clamp(32px,6vh,68px); border-radius: 12px; background: rgba(8,13,12,.68); backdrop-filter: blur(16px); }
.login-qr-card { border-radius: 10px; background: rgba(18,26,24,.88); }
.auth-panel { padding: 30px; border: 1px solid #d9dfdc; border-radius: 16px; background: #f7f9f7; box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.auth-tabs { border-radius: 10px; background: #e9eeeb; }
.auth-tabs button { border-radius: 8px; }
.auth-tabs button.active,button.primary { background: #0d6f56; border-color: #0d6f56; }
.auth-tabs button.active:hover,button.primary:hover { background: #085c47; }
input:focus { border-color: #0d6f56; box-shadow: 0 0 0 3px rgba(13,111,86,.12); }
@media (max-width:760px) {
  .auth-site-header { height: 58px; padding-inline: 14px; }
  .auth-site-header nav a { padding: 8px; font-size: 11px; }
  .auth-site-header nav a:last-child { display: none; }
  .auth-layout { padding-top: 58px; }
  .auth-brand { min-height: auto; }
  .auth-panel { padding: 22px; }
}
