:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: #344552;
  background: #edf5fc;
  font-synthesis: none;
  --ink: #344552;
  --muted: #657784;
  --graphite: #282d33;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button, input { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #6c7986;
  outline-offset: 4px;
}
button:disabled { cursor: wait; opacity: .7; }
button, a { -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }

.login-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 26% 14%, #fff 0, #fff0 50%),
    radial-gradient(ellipse at 80% 80%, #dcecf8a6 0, #e3f0fa00 52%),
    linear-gradient(135deg, #f9fcff 0%, #edf6fe 56%, #e4eff9 100%);
}

.login-stage {
  isolation: isolate;
  position: relative;
  display: grid;
  place-items: center;
  width: min(760px, 100%);
  padding: 43px 0 0;
}

.liquid-decoration {
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 480px;
  max-width: none;
  object-fit: contain;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -47%);
  pointer-events: none;
  filter: drop-shadow(0 13px 10px #20252a14);
}

.login-card {
  position: relative;
  width: min(400px, 100%);
  padding: 59px 28px 23px;
  border: 1px solid #ffffffed;
  border-radius: 30px;
  background: linear-gradient(145deg, #ffffffbe 0%, #f2f9ffab 56%, #e9f3fbc9 100%);
  box-shadow:
    inset 0 0 0 3px #ffffff38,
    inset 0 -1px 0 #ffffffa8,
    0 19px 38px #20262c21,
    0 2px 5px #20262c0f;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #ffffffb8;
  border-radius: 25px;
  pointer-events: none;
}

.brand-medallion {
  position: absolute;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  top: -43px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #ffffffed;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 28% 15%, #c0c4c8eb 0%, #888e94aa 17%, #4b515700 53%),
    linear-gradient(145deg, #666c72 0%, #343a40 48%, #20262c 79%, #72787d 100%);
  box-shadow:
    inset 0 0 0 3px #e5e9ec66,
    inset 2px 3px 8px #ffffff73,
    inset -3px -5px 9px #1018205e,
    0 8px 13px #20252c2b,
    0 1px 3px #20252c22;
}

.brand-medallion::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid #ffffff5c;
  border-radius: 50%;
}

.brand-reflection {
  position: absolute;
  top: 7px;
  left: 12px;
  right: 12px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff5e, #ffffff00);
  transform: rotate(-20deg);
}

.brand-medallion img {
  position: relative;
  z-index: 1;
  width: 65px;
  height: 60px;
  object-fit: contain;
  transform: translateY(-1px);
  filter: drop-shadow(0 -1px 0 #ffffffc9) drop-shadow(1px 3px 1px #151c248c);
}

.card-header { text-align: center; margin-bottom: 25px; }
.card-header h1 {
  margin: 0;
  font-size: 29px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.8px;
  color: #2e4659;
}
.card-header p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #647785; }
.card-header strong { font-weight: 550; }

.field-group { margin-bottom: 15px; }
.glass-field {
  display: block;
  position: relative;
  padding: 8px 13px 9px;
  border: 1px solid #aebbc6a6;
  border-radius: 13px;
  background: linear-gradient(145deg, #ffffff9e, #f0f7fc73);
  box-shadow: inset 0 1px 2px #ffffffd6, inset 0 -1px 4px #2f3a4209, 0 3px 5px #20252c0b;
  transition: border-color .16s, box-shadow .16s;
}
.glass-field:focus-within { border-color: #6e7d88; box-shadow: inset 0 1px 2px #fff, 0 0 0 3px #59697714; }
.field-caption { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 600; line-height: 1.2; }
.field-content { display: flex; align-items: center; gap: 11px; min-height: 24px; }
.field-icon { flex-shrink: 0; width: 21px; height: 21px; stroke: #424e58; fill: none; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }
.field-content::before { content: ""; position: absolute; left: 45px; bottom: 11px; width: 1px; height: 23px; background: #81909d59; }
.field-content input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 0 1px 0 7px; height: 27px; outline: 0; font-size: 15px; line-height: 1.3; color: #344552; }
.field-content input::placeholder { color: #7a8995; opacity: 1; }
.field-content input[type="password"] { letter-spacing: .8px; }
.field-content input[type="password"]::placeholder { letter-spacing: 0; }
.visibility-toggle { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; padding: 5px; margin: -3px -5px -3px 0; border: 0; border-radius: 6px; background: transparent; }
.visibility-toggle:hover { background: #65717c12; }
.visibility-toggle svg { width: 20px; height: 20px; fill: none; stroke: #46535d; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.field-group:has([aria-invalid="true"]) .glass-field { border-color: #a15c5c; }
.field-error { margin: 6px 3px 0; color: #974c4c; font-size: 12px; line-height: 1.4; }

.form-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 21px; font-size: 13px; }
.remember-option { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap; }
.remember-option input { appearance: none; margin: 0; width: 17px; height: 17px; border: 1.5px solid #6b7984; border-radius: 4px; background: #ffffff85; box-shadow: inset 0 1px 2px #1c242b0d; cursor: pointer; display: grid; place-items: center; }
.remember-option input:checked { background: #404950; border-color: #404950; }
.remember-option input:checked::after { content: ""; width: 7px; height: 4px; transform: rotate(-45deg) translateY(-1px); border-left: 2px solid #fff; border-bottom: 2px solid #fff; }
.text-link { border: 0; padding: 0; background: none; color: #485c6b; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #7c8a95a6; }
.text-link:hover { color: #1e303e; text-decoration-color: currentColor; }

.login-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 47px;
  padding: 11px 18px;
  border: 1px solid #676e75;
  border-radius: 25px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #626970 0%, #3b4249 33%, #2a3036 65%, #353c43 100%);
  box-shadow: inset 0 1px 0 #ffffffa1, inset 0 0 0 2px #ffffff12, inset 0 -3px 5px #0000002b, 0 6px 11px #22282e24;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  text-shadow: 0 1px 1px #0005;
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.login-button::before { content: ""; position: absolute; inset: 2px 10px auto; height: 15px; background: linear-gradient(180deg, #ffffff21, #ffffff00); border-radius: 20px; pointer-events: none; }
.login-button:hover { filter: brightness(1.1); box-shadow: inset 0 1px 0 #ffffffb8, inset 0 0 0 2px #ffffff1a, 0 7px 13px #22282e30; }
.login-button:active { transform: translateY(1px); }
.login-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.form-feedback { margin: 0; font-size: 12px; line-height: 1.4; text-align: center; }
.form-feedback:not(:empty) { margin-top: 12px; }
.card-footer { display: flex; justify-content: center; gap: 7px; align-items: center; padding-top: 18px; margin-top: 24px; border-top: 1px solid #a4b4c14d; font-size: 13px; line-height: 1.4; color: #6d7c87; }
.preview-caption { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 19px; margin-top: 25px; font-size: 12px; color: #6c7a85; }
.preview-caption i { font-style: normal; margin: 0 4px; color: #a0aab2; }
.preview-caption a { font-size: 12px; color: #5a6e7c; text-decoration-color: #8a99a599; text-underline-offset: 3px; }

.access-dialog { position: fixed; width: min(390px, calc(100vw - 36px)); max-height: calc(100svh - 50px); overflow: auto; margin: auto; padding: 31px 26px 25px; border: 1px solid #fff; border-radius: 23px; color: #344552; background: #f6fafff5; box-shadow: 0 20px 60px #16202c33, inset 0 0 0 3px #fff9; }
.access-dialog::backdrop { background: #25313d50; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 14px; top: 10px; border: 0; border-radius: 7px; width: 28px; height: 28px; background: transparent; font-size: 26px; line-height: 1; font-weight: 300; color: #62717d; }
.dialog-close:hover { background: #3445520a; }
.dialog-symbol { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid #d6dfe6; border-radius: 12px; background: linear-gradient(145deg, #fff, #e4edf4); box-shadow: 0 3px 6px #25313d0a; }
.dialog-symbol svg { width: 23px; height: 23px; fill: none; stroke: #52616d; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.access-dialog h2 { margin: 0 0 9px; font-size: 23px; font-weight: 600; letter-spacing: -.5px; }
.access-dialog > p { margin: 0 0 24px; color: #697b88; font-size: 14px; line-height: 1.6; }
.dialog-field { display: flex; flex-direction: column; gap: 8px; margin: 15px 0 0; font-size: 14px; }
.dialog-field input { min-width: 0; width: 100%; height: 45px; border: 1px solid #adbcc7; border-radius: 10px; padding: 10px 12px; background: #ffffffad; font-size: 15px; }
.dialog-feedback { margin: 12px 0; color: #596d7b; font-size: 13px; line-height: 1.6; }
.dialog-feedback.error { color: #974c4c; }
.dialog-back { display: block; margin: 20px auto 0; font-size: 13px; }
.support-note { display: flex; flex-direction: column; gap: 7px; padding: 16px; margin: 0 0 23px; border: 1px solid #d2dce4; border-radius: 12px; background: #eaf2f880; font-size: 14px; line-height: 1.5; }
.support-note strong { font-weight: 550; }
.support-note span { color: #6c7d89; font-size: 13px; }

@media (min-width: 1700px) {
  .login-card { width: 410px; }
  .liquid-decoration { width: 740px; height: 493px; }
}
@media (max-width: 600px) {
  .login-shell { padding: 25px 18px; }
  .login-card { width: min(382px, 100%); padding-left: 23px; padding-right: 23px; }
  .liquid-decoration { width: 650px; height: 434px; opacity: .7; }
  .form-options { font-size: 12px; gap: 8px; }
  .card-footer { font-size: 12px; }
  .preview-caption { margin-top: 23px; }
}
@media (max-width: 360px) {
  .login-shell { padding-left: 14px; padding-right: 14px; }
  .login-card { padding-left: 18px; padding-right: 18px; }
  .form-options { align-items: flex-start; flex-direction: column; gap: 12px; }
  .card-footer { flex-wrap: wrap; }
}
@media (max-height: 680px) and (min-width: 700px) {
  .login-shell { padding-top: 18px; padding-bottom: 18px; }
  .login-card { padding-top: 49px; padding-bottom: 19px; }
  .card-header { margin-bottom: 20px; }
  .card-header h1 { font-size: 27px; }
  .brand-medallion { width: 78px; height: 78px; top: -38px; }
  .brand-medallion img { width: 59px; height: 54px; }
  .card-footer { margin-top: 20px; padding-top: 15px; }
  .preview-caption { margin-top: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
