@font-face {
  font-family: RunlineInter;
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #172635;
  --secondary: #485e72;
  --line: #c7d5e2;
  --blue: #1b59b4;
  --blue-strong: #16478d;
  --surface: #f5f8fc;
  font-family: RunlineInter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: #edf4fb; }
body, input, button { line-height: 1.5; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
::selection { color: #14365e; background: #c2dcf7; }
:where(a, button, input):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.account-header {
  width: min(1120px, calc(100% - 48px));
  height: 76px;
  display: flex;
  align-items: center;
  margin-inline: auto;
  border-bottom: 1px solid #d5e2ef;
}
.brand { display: inline-flex; gap: 9px; align-items: center; font-size: 24px; font-weight: 610; letter-spacing: -.035em; }
.brand img { display: block; }
.account-main { padding: clamp(26px, 7vh, 68px) 20px 56px; }
.account-panel { margin-inline: auto; width: min(100%, 462px); padding: 34px 38px; border-radius: 16px; background: var(--paper); border: 1px solid #d5e2ef; }
h1 { margin: 0; font-size: clamp(27px, 5vw, 35px); font-weight: 625; line-height: 1.18; letter-spacing: -.035em; }
.account-panel > p { margin: 12px 0 0; color: var(--secondary); overflow-wrap: anywhere; }
.account-social { margin-top: 21px; padding-bottom: 22px; border-bottom: 1px solid #dce5ee; }
.account-social p { margin: 0 0 8px; color: var(--secondary); font-size: 13px; }
.provider-list { display: flex; flex-wrap: wrap; gap: 8px; }
.provider {
  background: var(--surface);
  color: var(--ink);
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 540;
}
.provider-list .provider { flex: 1 1 84px; }
.provider:not(:disabled):hover { background: #e8f1fa; }
form { margin-top: 22px; }
fieldset { display: grid; gap: 15px; border: 0; min-width: 0; margin: 0; padding: 0; }
label { display: grid; gap: 5px; font-size: 13px; font-weight: 550; }
label small { color: var(--secondary); font-size: 12px; font-weight: 400; }
input {
  color: var(--ink);
  background: var(--surface);
  caret-color: var(--blue);
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 100%;
  min-height: 45px;
  font-size: 16px;
  font-weight: 400;
}
input::placeholder { color: #576d81; opacity: 1; }
#account-code { font-variant-numeric: tabular-nums; }
.account-primary {
  width: 100%;
  min-height: 46px;
  margin-top: 19px;
  padding: 8px 14px;
  color: white;
  background: var(--blue);
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 595;
}
.account-primary:not(:disabled):hover { background: var(--blue-strong); }
.account-primary:disabled, .provider:disabled { opacity: .66; }
.account-actions { margin-top: 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 14px; }
.text-button {
  padding: 7px 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  text-align: left;
  text-underline-offset: .22em;
}
.text-button:disabled { color: var(--secondary); }
.text-button:not(:disabled):hover { text-decoration: underline; }
.account-notice { margin: 11px 0 0; font-size: 14px; overflow-wrap: anywhere; }
#account-error, #account-page-error { color: #a02636; }
#account-profile p { margin: 6px 0; overflow-wrap: anywhere; }
#account-profile-name { font-weight: 590; margin-top: 17px !important; }
#account-profile-email { color: var(--secondary); }
#account-logout { margin-top: 13px; }

@media (max-width: 520px) {
  .account-header { height: 63px; width: calc(100% - 32px); }
  .account-main { padding: 22px 12px 30px; }
  .account-panel { padding: 26px 20px; }
  .provider-list .provider { flex-basis: 70px; padding-inline: 8px; }
}
