@import url('/fonts.css');
:root {
  font-family: MiSans, system-ui, sans-serif;
  color: #23304a;
  background: #f4f7fc;
  font-synthesis: none;
  font-weight: 400;
  font-variant-east-asian: simplified;
  font-size: 16px;
  --accent: #3568d7;
  --muted: #71809a;
  --border: #dde4ef;
}
* {
  box-sizing: border-box;
}
h1,
h2,
h3,
strong,
b {
  font-weight: 600;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 14% 80%, #e4edff80, transparent 45%),
    radial-gradient(ellipse at 95% 10%, #e5eef980, transparent 45%), #f4f7fc;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8baaf1;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 5.2vw;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.025em;
}
.brand img {
  object-fit: contain;
}
.weather-link {
  font-size: 0.875rem;
  color: #64718a;
}
.weather-link span {
  margin-left: 8px;
}
main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 24px 64px;
}
.account-card {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 43% 57%;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 22px 80px #2e497411,
    0 3px 12px #2e497405;
}
.identity-panel {
  position: relative;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 622px;
  background:
    radial-gradient(ellipse at 92% 12%, #ffffffb0, transparent 57%),
    linear-gradient(145deg, #dbe8fc, #c5d8f6 58%, #afc8ef);
  color: #2b4875;
}
.wordmark {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.wordmark span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.27em;
  margin-top: 5px;
  font-weight: 400;
  opacity: 0.7;
}
.identity-content {
  padding: 24px 0 38px;
}
.identity-logo {
  display: block;
  object-fit: contain;
  margin-left: -7px;
  filter: drop-shadow(0 12px 22px #4f7fb526);
}
.identity-content h2 {
  font-size: 2.5rem;
  letter-spacing: 0.025em;
  line-height: 1.5;
  margin: 25px 0 18px;
  font-weight: 600;
}
.identity-content p {
  font-size: 1rem;
  color: #5e789e;
  line-height: 1.9;
  margin: 0;
}
.connected {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8125rem;
  color: #4e6e9a;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #557dab;
  box-shadow: 0 0 0 4px #ffffff40;
}
.form-panel {
  padding: 58px 64px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  font-size: 0.8125rem;
  color: #8390a5;
  margin: 0 0 12px;
  letter-spacing: 0.06em;
}
h1 {
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.015em;
  line-height: 1.4;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.intro {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 33px;
  line-height: 1.7;
}
form > label,
.label-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}
input:not([type='checkbox']) {
  width: 100%;
  height: 51px;
  border: 1px solid var(--border);
  background: #fbfcff;
  border-radius: 10px;
  padding: 0 15px;
  outline: none;
  color: #26334b;
  font-size: 0.9375rem;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input::placeholder {
  color: #a1aaba;
}
input:not([type='checkbox']):focus {
  border-color: #6e96e9;
  box-shadow: 0 0 0 3px #477ee619;
}
#email {
  margin: 9px 0 23px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.text-button:hover {
  text-decoration: underline;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 63px;
}
.password-field button {
  position: absolute;
  right: 4px;
  top: 4px;
  height: 43px;
  padding: 0 12px;
  background: none;
  border: 0;
  color: #75849d;
  font-size: 0.8125rem;
}
.remember {
  display: flex !important;
  gap: 9px;
  align-items: center;
  margin: 19px 0 24px;
  font-weight: 400 !important;
  color: #66758f;
  font-size: 0.8125rem !important;
  cursor: pointer;
}
.remember input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin: 0;
}
.primary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: #3568d7;
  padding: 15px 20px;
  font-size: 0.9375rem;
  line-height: 1.4;
  box-shadow: 0 4px 10px #3568d719;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary:hover {
  background: #285ac5;
}
.primary:active {
  transform: scale(0.99);
}
.primary span:last-child {
  font-size: 1.2rem;
  line-height: 1;
}
.single-session {
  font-size: 0.75rem;
  line-height: 1.7;
  color: #8a95a8;
  margin: 13px 0 0;
}
.register-row {
  border-top: 1px solid #edf0f6;
  margin-top: 27px;
  padding-top: 24px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  color: #78869b;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.register-row .text-button {
  font: inherit;
}
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #98a2b3;
  margin-top: 32px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 0 5.2vw 24px;
  font-size: 0.75rem;
  color: #96a0b2;
}
.message {
  font-size: 0.8125rem;
  background: #fff2f0;
  color: #af3434;
  border-radius: 8px;
  padding: 11px 13px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.profile-details {
  margin: 22px 0 28px;
}
.profile-details > div {
  padding: 15px 0;
  border-bottom: 1px solid #edf0f6;
}
.profile-details dt {
  font-size: 0.75rem;
  color: #8a95a8;
  margin-bottom: 7px;
}
.profile-details dd {
  margin: 0;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.logout {
  display: block;
  border: 0;
  background: none;
  margin: 22px auto 0;
  color: #64738b;
  font-size: 0.875rem;
  padding: 9px 20px;
}
.logout:hover {
  color: #b34242;
}
dialog {
  width: min(420px, calc(100vw - 40px));
  border: 1px solid #fff;
  border-radius: 22px;
  padding: 36px;
  color: #23304a;
  box-shadow: 0 20px 100px #172f6130;
}
dialog::backdrop {
  background: #20365f40;
  backdrop-filter: blur(6px);
}
dialog h2 {
  font-size: 1.35rem;
  margin: 20px 0 12px;
}
dialog p {
  color: #71809a;
  line-height: 1.8;
  font-size: 0.9375rem;
  margin-bottom: 26px;
}
dialog .primary {
  justify-content: center;
}
.close {
  position: absolute;
  right: 13px;
  top: 9px;
  border: 0;
  background: none;
  font-size: 1.7rem;
  color: #8a95a8;
  padding: 4px 12px;
}
@media (min-width: 1440px) {
  .account-card {
    max-width: 1050px;
  }
  .identity-panel {
    min-height: 660px;
    padding: 48px;
  }
  .form-panel {
    padding: 64px 72px 36px;
  }
}
@media (max-width: 850px) {
  .form-panel {
    padding: 44px 34px 28px;
  }
  .identity-panel {
    padding: 32px;
    min-height: 610px;
  }
  .identity-content h2 {
    font-size: 2rem;
  }
  .identity-content p {
    font-size: 0.875rem;
  }
  .account-card {
    grid-template-columns: 40% 60%;
  }
}
@media (max-width: 620px) {
  .header {
    padding: 22px 24px;
  }
  .brand {
    font-size: 1rem;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .weather-link {
    font-size: 0.75rem;
  }
  .weather-link span {
    margin-left: 2px;
  }
  main {
    padding: 18px 18px 40px;
  }
  .account-card {
    display: block;
    max-width: 440px;
    border-radius: 22px;
  }
  .identity-panel {
    min-height: 0;
    padding: 22px 27px;
    flex-direction: row;
    align-items: center;
  }
  .wordmark {
    font-size: 0.6875rem;
    letter-spacing: 0.13em;
  }
  .wordmark span {
    font-size: 0.625rem;
    letter-spacing: 0.22em;
  }
  .identity-content {
    display: none;
  }
  .connected {
    font-size: 0.75rem;
  }
  .form-panel {
    padding: 34px 28px 24px;
  }
  h1 {
    font-size: 1.6rem;
  }
  .intro {
    margin-bottom: 28px;
  }
  footer {
    padding: 0 24px 20px;
  }
  .secure-note {
    margin-top: 25px;
  }
}
.management-header {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 40px;
}
.outline-button {
  border: 1px solid var(--border);
  background: #fff;
  color: #3f567b;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 0.875rem;
  white-space: nowrap;
}
.outline-button:hover {
  background: #edf3ff;
  border-color: #b5c9ee;
}
.management-main {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  place-items: initial;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 40px 64px;
}
.management-sidebar {
  position: sticky;
  top: 32px;
  padding-top: 12px;
}
.management-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.management-sidebar nav a {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9375rem;
  display: flex;
  gap: 16px;
  color: #66758c;
}
.management-sidebar nav a span {
  font-size: 0.8125rem;
  opacity: 0.7;
  align-self: center;
}
.management-sidebar nav a[aria-current],
.management-sidebar nav a:hover {
  background: #e3ecfc;
  color: #2c5db8;
}
.sidebar-note {
  margin-top: 80px;
  padding: 20px 14px;
  border-top: 1px solid var(--border);
}
.sidebar-note p {
  color: #7a89a1;
  font-size: 0.875rem;
  line-height: 1.8;
}
.management-content {
  min-width: 0;
}
.welcome-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0 34px;
}
.account-avatar {
  flex-shrink: 0;
  border-radius: 24px;
  object-fit: cover;
  background: #e0eafa;
  border: 4px solid #fff;
}
.welcome-panel h1 {
  font-size: 1.85rem;
  margin-bottom: 7px;
}
.welcome-panel .eyebrow {
  margin-bottom: 8px;
}
.welcome-caption {
  color: var(--muted);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.panel {
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 20px;
  padding: 30px 32px;
  margin-bottom: 22px;
  scroll-margin-top: 24px;
  box-shadow: 0 5px 24px #29497904;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #8a98ae;
  margin: 0 0 7px;
}
.panel h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}
.soft-badge {
  display: inline-block;
  flex-shrink: 0;
  color: #5676a7;
  background: #f0f5fd;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 0.8125rem;
}
.account-facts {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 22px 28px;
  margin: 0 0 26px;
}
.account-facts dt {
  font-size: 0.875rem;
  color: #7b89a0;
  margin-bottom: 7px;
}
.account-facts dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.nickname-form {
  padding-top: 24px;
  border-top: 1px solid #ecf0f6;
}
.inline-fields {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 9px;
}
.primary.compact {
  margin: 0;
  width: auto;
  flex-shrink: 0;
  height: 51px;
  padding: 0 22px;
  font-size: 0.875rem;
}
.field-hint {
  font-size: 0.875rem;
  color: #7989a1;
  line-height: 1.7;
  margin: 12px 0 0;
}
.section-description {
  font-size: 0.9375rem;
  color: #71809a;
  line-height: 1.7;
  margin: -6px 0 24px;
}
.password-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.password-grid > div:first-child {
  grid-column: 1 / -1;
}
.password-grid label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 9px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}
.form-actions .field-hint {
  margin: 0;
}
.management-page .message {
  margin: 16px 0 0;
}
.success-message {
  color: #246649;
  background: #edf8f1;
}
.membership-facts {
  margin-bottom: 24px;
}
.product-row {
  border-top: 1px solid #ecf0f6;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.product-row h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}
.product-row p {
  color: #7b89a0;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
}
.product-row .soft-badge {
  margin-left: auto;
}
.loading-state {
  padding: 80px 0;
  color: var(--muted);
}
@media (max-width: 850px) {
  .management-main {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 8px 24px 40px;
  }
  .management-header {
    padding: 24px;
  }
  .management-sidebar {
    position: static;
    padding: 0;
  }
  .management-sidebar > .eyebrow,
  .sidebar-note {
    display: none;
  }
  .management-sidebar nav {
    display: flex;
    margin: 0;
    gap: 4px;
  }
  .management-sidebar nav a {
    flex: 1;
    justify-content: center;
    padding: 13px 6px;
    font-size: 0.875rem;
  }
  .management-sidebar nav a span {
    display: none;
  }
}
@media (max-width: 520px) {
  .management-main {
    padding-inline: 18px;
  }
  .panel {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .welcome-panel {
    gap: 15px;
    padding-bottom: 26px;
  }
  .welcome-panel h1 {
    font-size: 1.4rem;
  }
  .account-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }
  .account-facts,
  .password-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .inline-fields,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .primary.compact {
    width: 100%;
  }
  .product-row {
    flex-wrap: wrap;
  }
  .product-row .soft-badge {
    margin-left: 59px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
