@font-face {
  font-family: "Open Sans";
  src: url("/open-sans.ttf") format("truetype");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  font: 15px/1.5 "Open Sans", system-ui, sans-serif;
  background: #f4f5fa;
  color: #252640;
  --line: #dfe1eb;
  --accent: #5642cc;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(430px, calc(100% - 32px)); margin: clamp(28px, 11vh, 108px) auto; }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 18px; font-weight: 750; }
.panel { background: white; border: 1px solid var(--line); border-radius: 15px; padding: clamp(17px, 5vw, 27px); }
h1 { margin: 0 0 16px; font-size: 25px; line-height: 1.25; letter-spacing: -.02em; }
p { color: #545871; margin: 0 0 14px; }
label { display: grid; gap: 5px; font-weight: 650; margin-bottom: 14px; }
button, input { font: inherit; }
input { min-width: 0; width: 100%; padding: 9px 10px; border: 1px solid #c7c9dc; border-radius: 8px; color: inherit; }
button { cursor: pointer; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; background: white; color: inherit; font-weight: 650; }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #8a76ef; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
.primary:hover:not(:disabled) { background: #4734ae; }
.text-button { padding: 0; border: 0; color: var(--accent); }
#error { color: #9c303c; margin: 14px 0 0; }

:root{
  min-height:100%;
  background:#091b39 linear-gradient(#04132d26,#04132d4d) center/cover fixed;
  background-image:linear-gradient(#04132d26,#04132d4d),url("/mail-galaxy.webp");
}
.brand{color:white;text-shadow:0 2px 8px #00122e}
.panel p{color:#dbe8ff}
.panel .text-button{background:transparent;color:#a7dfff}
.panel .text-button:hover{text-decoration:underline}
.panel #error{color:#ffbfc3}

.password-hints{padding:12px 14px;margin:0 0 6px;border:1px solid currentColor;border-radius:10px;font-size:14px;line-height:1.45}
.password-hints progress{display:block;width:100%;height:8px;margin:7px 0;accent-color:#e99b38}
.password-hints[data-valid="true"] progress{accent-color:#24af83}
.password-hints ul{list-style:none;padding:0;margin:7px 0}
.password-hints li{margin:2px 0}
.password-hints small{display:block;font-size:13px}
.password-match{font-size:14px;font-weight:600;margin-bottom:6px}
.password-match[data-ok="false"]{color:var(--password-error,#a52135)}
.password-hints [data-ok="true"],.password-match[data-ok="true"]{color:var(--password-ok,#087451)}
.panel{--password-ok:#88efc3;--password-error:#ffbfc3}

#profile-second-factor{display:grid;gap:14px}
#profile-second-factor h2,#profile-second-factor p{margin:0}
#profile-second-factor label{display:grid;gap:6px;margin:0}
#profile-second-factor input[name="code"]{font-size:22px;letter-spacing:.32em;text-align:center;font-variant-numeric:tabular-nums}
#profile-second-factor [role="alert"]:empty{display:none}
#profile-second-factor [data-demo]:not([hidden]){padding:12px;border:1px dashed currentColor;border-radius:10px}
#profile-second-factor .actions{margin-top:0}
#profile-second-factor [data-resend]{justify-self:center}

#profile-second-factor [role="alert"]{color:#ffbfc3}

#message a{color:#a7dfff}
.reset-notice{width:min(430px,calc(100vw - 32px));padding:26px;border:1px solid #c3dafe55;border-radius:18px;background:#142842;color:#fff;box-shadow:0 20px 60px #0005}
.reset-notice::backdrop{background:#07132899}
.reset-notice h2{margin:0;font-size:22px}
.reset-notice p{line-height:1.6}
.reset-notice a{color:#a7dfff}
.reset-notice button{display:block;margin:22px 0 0 auto;min-width:112px}
