*{box-sizing:border-box}body{margin:0;min-width:320px;color:#263452;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;background:#eef4ff}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #93baff;outline-offset:4px}body:before{content:"";position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 92% 45%,#c7f0edaa,transparent 42%),radial-gradient(ellipse at 2% 4%,#c5dfff,transparent 40%),radial-gradient(ellipse at 65% 100%,#e1dcff77,transparent 45%);z-index:-1}.page-wrap{max-width:720px;margin:auto;position:relative;padding-bottom:25px}.site-header{height:82px;border:1px solid #ffffffd9;border-top:0;border-radius:0 0 34px 34px;background:#e0e7f1c9;backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;position:relative;z-index:2;box-shadow:0 2px 0 #ffffff50}.site-header h1{font-size:23px;letter-spacing:.035em;margin:0;font-weight:750;color:#283140}.site-header>svg{position:absolute;right:27px;width:27px;fill:none;stroke:#80aaa3;stroke-width:2}.hero{height:230px;position:relative;display:grid;place-items:center;overflow:hidden}.camera{width:175px;height:160px;position:relative;z-index:1;filter:drop-shadow(0 16px 26px #477cf529)}.laptop{position:absolute;width:430px;height:250px;left:50%;top:-15px;transform:translateX(-55%) rotate(-12deg);border:12px solid #a8b9c966;border-bottom:25px solid #9cafc066;border-radius:18px;background:#ffffff55;opacity:.35;box-shadow:40px 30px 70px #9bacbc55}.laptop-bar{margin:20px;height:23px;background:repeating-linear-gradient(90deg,#8aaccb 0 28px,transparent 28px 54px);opacity:.4}.dashboard-lines{position:absolute;inset:70px 25px 25px;background:repeating-linear-gradient(0deg,transparent 0 31px,#96acc62b 31px 32px)}.laptop svg{position:absolute;inset:60px 18px 20px;width:90%;height:130px}.tagline{text-align:center;font-size:19px;color:#63799a;margin:0 15px 28px;letter-spacing:.04em}.auth-card{background:#fff;border-radius:36px;margin:0 25px;padding:42px 36px 28px;box-shadow:0 12px 42px #6589c00a}.identity{width:126px;height:96px;display:block;margin:0 auto 24px;filter:drop-shadow(0 13px 18px #4474ed25)}.tabs{max-width:330px;margin:0 auto;display:flex;gap:5px;padding:7px;border-radius:23px;background:#edf2fc}.tab{width:50%;height:54px;border:0;border-radius:18px;color:#8b99b3;background:transparent;font-weight:750;font-size:23px;transition:background .18s,color .18s,box-shadow .18s}.tab.active{color:#3478ff;background:white;box-shadow:0 8px 20px #6991f331}.form-description{text-align:center;color:#8c9bb4;font-size:17px;line-height:1.6;margin:24px 0 32px}.field-box{padding:14px 16px;display:flex;align-items:center;gap:16px;border:1.5px solid #e0e8f5;border-radius:23px;background:#f5f8ff;margin-bottom:17px;transition:border-color .18s,box-shadow .18s}.field-box:focus-within{border-color:#91baff;box-shadow:0 0 0 4px #4387ff0b;background:#f8fbff}.field-icon{width:55px;height:58px;border-radius:17px;display:grid;place-items:center;flex-shrink:0;color:#3a7dff;background:#e3edff}.field-icon svg{width:28px;height:28px;fill:currentColor}.field-main{min-width:0;flex:1}.field-main label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:18px;font-weight:700;line-height:1.4;color:#26375d;margin-bottom:5px}.required{color:#fb876b;background:#ffeee9;font-size:12px;border-radius:20px;white-space:nowrap;font-weight:650;padding:3px 8px}.field-main input{border:0;outline:0;width:100%;background:transparent;color:#344568;font-size:15px;padding:4px 0;line-height:1.5;min-width:0}.field-main input::placeholder{color:#a6b5ce;opacity:1}.password-row{display:flex;align-items:center;gap:4px}.password-toggle{flex-shrink:0;border:0;background:transparent;color:#a2b1cb;width:30px;height:28px;padding:3px}.password-toggle svg{width:24px;height:24px}.password-toggle[aria-pressed=true] .eye-slash{display:none}.helper{font-size:13px;line-height:1.6;color:#a5b2c9;margin:0 3px 22px;display:flex;gap:7px}.helper span{font-size:16px;line-height:1.3}.submit-button{display:flex;align-items:center;justify-content:center;gap:18px;background:linear-gradient(105deg,#4b9dff,#3269ff);border:0;color:white;width:100%;height:66px;border-radius:40px;font-size:23px;font-weight:700;letter-spacing:.05em;box-shadow:0 15px 30px #3c78f637;transition:box-shadow .2s,transform .2s;margin-top:8px}.submit-button:hover{box-shadow:0 17px 32px #3c78f64a;transform:translateY(-1px)}.submit-button:disabled{opacity:.65;transform:none}.submit-button>span+span{font-size:28px;font-weight:400}.security-note{display:flex;align-items:center;justify-content:center;gap:7px;margin:24px 0 0;color:#9aa9c1;font-size:13px;line-height:1.7;text-align:center}.security-note svg{width:14px;height:16px;flex-shrink:0}.site-footer{color:#9aaac1;font-size:11px;text-align:center;letter-spacing:.05em;margin-top:24px}.form-message{font-size:13px;line-height:1.6;padding:11px 14px;margin:0 0 15px;color:#bd4350;background:#fff1f2;border-radius:12px}.form-message.success{background:#edfaf3;color:#22825d}[hidden]{display:none!important}.member-card{text-align:center}.member-card h2{margin:12px 0;font-size:26px}.member-card .welcome{color:#8697b1;font-size:14px;line-height:1.8}.account-details{text-align:left;background:#f5f8ff;border:1px solid #e0e8f5;border-radius:20px;padding:5px 18px;margin:25px 0}.account-details div{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #e6ecf6;font-size:14px}.account-details div:last-child{border-bottom:0}.account-details dt{color:#8a9ab3}.account-details dd{margin:0;overflow-wrap:anywhere}.member-state{background:#edf8f3;color:#2e8b68;display:inline-block;padding:5px 12px;border-radius:30px;font-size:12px}.plain-button{width:100%;background:#eff4fd;border:1px solid #dce6f7;border-radius:18px;height:49px;color:#58779f;font-weight:600}.member-note{font-size:13px;line-height:1.8;color:#8a9ab3;margin:22px 0}.member-card .identity{margin-bottom:14px}
@media(min-width:800px){.page-wrap{padding-top:20px}.site-header{border-radius:28px;height:78px}.hero{height:210px}.tagline{margin-bottom:26px}.auth-card{max-width:590px;margin:auto;padding:36px 44px 30px}.identity{width:115px;height:85px;margin-bottom:20px}.tabs{max-width:300px}.tab{height:48px;font-size:21px}.form-description{margin:20px 0 27px}.field-box{padding:12px 15px;margin-bottom:16px}.field-main label{font-size:17px}.field-icon{height:53px;width:53px}.submit-button{height:59px;font-size:21px}}
@media(max-width:430px){.site-header{height:65px;border-radius:0 0 26px 26px}.site-header h1{font-size:19px}.site-header>svg{right:20px;width:23px}.hero{height:195px}.camera{width:146px;height:140px}.tagline{font-size:16px;margin-bottom:25px}.auth-card{margin:0 18px;border-radius:29px;padding:33px 23px 25px}.identity{width:108px;height:81px;margin-bottom:20px}.tabs{max-width:270px;border-radius:19px;padding:6px}.tab{height:46px;font-size:21px;border-radius:15px}.form-description{font-size:14px;margin:21px 0 27px}.field-box{border-radius:18px;padding:12px;gap:12px;margin-bottom:14px}.field-icon{width:44px;height:49px;border-radius:14px}.field-icon svg{width:24px;height:24px}.field-main label{font-size:15px;margin-bottom:4px}.field-main input{font-size:12px}.required{font-size:10px;padding:2px 6px}.helper{font-size:11px;margin-bottom:20px}.submit-button{height:55px;font-size:20px}.security-note{font-size:11px;margin-top:21px}.password-toggle{width:25px;padding:2px}.password-toggle svg{width:22px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Registration and sign-in */
.portal-auth .auth-hero {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, .78fr);
  align-items: center;
  gap: 8px;
  min-height: 152px;
  margin: 18px 18px 20px;
  padding: 16px 20px 16px 24px;
  border: 1px solid #294974;
  border-radius: 26px;
  overflow: hidden;
  background: radial-gradient(ellipse at 92% 33%, #23518d, transparent 62%), linear-gradient(135deg, #112341, #193660);
  box-shadow: 0 14px 26px #17376c25;
}
.portal-auth .auth-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(#88bbff13 1px, transparent 1px), linear-gradient(90deg, #88bbff13 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(90deg, transparent 15%, #000);
}
.portal-auth .auth-hero p {
  margin: 0;
  color: #f2f7ff;
  font-size: clamp(17px, 4.8vw, 22px);
  font-weight: 700;
  line-height: 1.46;
  letter-spacing: .02em;
}
.portal-auth .auth-hero-visual {
  justify-self: end;
  width: 100%;
  max-width: 144px;
}
.portal-auth .auth-hero-visual svg { display: block; width: 100%; }
.portal-auth .auth-site-header {
  justify-content: flex-start;
  gap: 12px;
  min-height: 59px;
  height: auto;
  margin: 12px 18px 0;
  padding: 9px 15px;
  border: 1px solid #ffffffed;
  border-radius: 20px;
  background: #f8fbffdf;
  box-shadow: 0 6px 20px #17376c0d;
}
.portal-auth .auth-site-header h1 {
  max-width: none;
  text-align: left;
  color: #172d4d;
  font-size: 18px;
  letter-spacing: .015em;
}
.portal-auth .auth-brand-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 12px;
  color: #f4f9ff;
  background: linear-gradient(145deg, #315b95, #172e53);
  box-shadow: 0 4px 10px #17376c24;
}
.portal-auth .auth-brand-icon svg { width: 22px; height: 22px; }
.portal-auth .auth-card { padding-top: 22px; }
.portal-auth .auth-account-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 auto 14px;
}
.portal-auth .auth-account-emblem::before,
.portal-auth .auth-account-emblem::after {
  content: "";
  width: 53px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c2d5f3);
}
.portal-auth .auth-account-emblem::after {
  background: linear-gradient(90deg, #c2d5f3, transparent);
}
.portal-auth .auth-account-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #d5e5fa;
  border-radius: 16px;
  background: linear-gradient(145deg, #f6faff, #e1edff);
  color: #23549e;
  box-shadow: inset 0 1px 0 #fff, 0 6px 14px #31589413;
}
.portal-auth .auth-account-mark svg { display: block; width: 32px; height: 32px; }
.portal-auth .security-note {
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 7px 11px;
  border: 1px solid #dfebf6;
  border-radius: 10px;
  background: #f3f7fc;
  color: #4a6385;
  font-size: 12px;
  line-height: 1.45;
}
.portal-auth .security-note svg { width: 16px; height: 16px; color: #168653; }
.portal-auth .field-icon {
  border: 1px solid #d7e4f8;
  background: #edf4ff;
  color: #2961bc;
}
.portal-auth .field-icon .auth-field-glyph {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.portal-auth .field-icon img { display: block; }
@media (max-width: 360px) {
  .portal-auth .auth-hero { min-height: 132px; padding: 14px 14px 14px 17px; }
}
.portal-auth .auth-disabled-dialog {
  width: min(360px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  padding: 24px;
  border: 1px solid #e0e8f5;
  border-radius: 22px;
  background: #fff;
  color: #263452;
  box-shadow: 0 22px 65px #12294f3b;
}
.portal-auth .auth-disabled-dialog::backdrop { background: #182b49a6; }
.portal-auth .auth-disabled-dialog h2 { margin: 0 0 10px; font-size: 20px; }
.portal-auth .auth-disabled-dialog p { margin: 0 0 18px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.portal-auth .auth-disabled-dialog button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #285acc;
  color: #fff;
  font-weight: 650;
}


.portal-auth .field-icon .register-field-glyph {
  display: none;
}
.portal-auth .auth-card .field-icon .auth-field-glyph {
  display: none;
}
.portal-auth .auth-card .field-icon .register-field-glyph {
  display: block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 23px;
  line-height: 1;
}

.portal-auth .auth-card {
  background: #fff;
  padding-block: 16px 18px;
}
.portal-auth .auth-card .auth-account-emblem {
  margin-bottom: 8px;
}
.portal-auth .auth-card .auth-account-mark {
  width: 44px;
  height: 44px;
}
.portal-auth .auth-card .form-description {
  margin-block: 12px 16px;
}
.portal-auth .auth-card .field-box {
  padding-block: 7px;
  margin-bottom: 9px;
  background: #f5f8fd;
  border-color: #dbe5f2;
}
.portal-auth .auth-card .field-box:focus-within {
  background: #eff5ff;
  border-color: #91baff;
}
.portal-auth .auth-card .field-icon {
  height: 42px;
  background: transparent;
  border-color: transparent;
}
.portal-auth .auth-card .submit-button {
  height: 48px;
  margin-top: 4px;
}
.portal-auth .auth-card .security-note {
  margin-top: 10px;
}

.portal-auth .auth-card .field-icon--account .register-field-glyph,
.portal-auth .auth-card .field-icon--code .register-field-glyph {
  font-size: 22px;
}
.portal-auth .auth-card .field-icon--password .register-field-glyph {
  transform: scaleX(1.10);
}
.portal-auth .auth-card .field-icon--email .register-field-glyph {
  font-size: 24px;
}
.portal-auth .auth-card .field-icon--telegram img {
  width: 23px;
  height: 23px;
}

.portal-auth .auth-card .auth-support-row .security-note {
  width: 184px;
  padding-inline: 10px;
  text-align: center;
}
.portal-auth .auth-card .auth-support-row { margin-top: 12px; }
