:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202329;
  background: #f5f5f2;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, #ffffff 0, #ffffff00 34%),
    radial-gradient(circle at 84% 82%, #e5e6e1 0, #e5e6e100 38%),
    #f5f5f2;
}

button, input { font: inherit; }
button { cursor: pointer; }

.login-page {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100dvh;
  padding: 34px 18px 24px;
}

.login-card {
  width: min(420px, 100%);
  padding: 42px 42px 34px;
  border: 1px solid #dedfda;
  border-radius: 30px;
  background: #fffffff2;
  box-shadow: 0 24px 70px #20231d17, 0 2px 8px #20231d08;
  backdrop-filter: blur(16px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border: 1px solid #e2e3de;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px #11182710;
  transform: translateY(6px);
}

.brand-mark img { width: 46px; height: 46px; object-fit: contain; }
.brand-name { margin: 0 0 22px; color: #595e66; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-align: center; }
h1 { margin: 0 0 12px; font-size: 30px; font-weight: 680; letter-spacing: -.045em; text-align: center; }
.login-intro { max-width: 330px; margin: 0 auto 29px; color: #7f848c; font-size: 14px; line-height: 1.55; text-align: center; }

.login-form { display: grid; gap: 9px; }
.login-form label { margin: 6px 3px 0; color: #50545c; font-size: 12px; font-weight: 650; }
.login-form input {
  width: 100%;
  height: 49px;
  padding: 0 15px;
  border: 1px solid #dfe1dd;
  border-radius: 15px;
  outline: none;
  background: #fff;
  color: #25282e;
  transition: border-color .16s, box-shadow .16s, background .16s;
  appearance: none;
}
.login-form input::placeholder { color: #b0b3b7; }
.login-form input:hover { border-color: #caccC6; }
.login-form input:focus { border-color: #777c83; box-shadow: 0 0 0 4px #62687014; }
.login-form input[aria-invalid="true"] { border-color: #c96060; box-shadow: 0 0 0 4px #c9606014; }

.password-field { position: relative; }
.password-field input { padding-right: 96px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 78px;
  padding: 7px 8px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #777c84;
  font-size: 11px;
}
.password-toggle:hover, .password-toggle:focus-visible { background: #f1f2ef; color: #34383e; outline: none; }

.login-status {
  margin: 5px 2px 0;
  padding: 10px 12px;
  border: 1px solid #efcaca;
  border-radius: 12px;
  background: #fff7f7;
  color: #a23f3f;
  font-size: 12px;
  line-height: 1.45;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  margin-top: 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: #171819;
  color: #fff;
  font-weight: 650;
  transition: transform .16s, background .16s, opacity .16s;
}
.login-submit:hover, .login-submit:focus-visible { background: #303236; outline: none; transform: translateY(-1px); }
.login-submit:disabled { opacity: .55; cursor: wait; transform: none; }
.login-submit span:last-child { font-size: 19px; font-weight: 400; }

.security-note { margin: 22px 0 0; color: #9a9ea4; font-size: 11px; text-align: center; }
.security-note span { margin-right: 5px; color: #53a47d; font-size: 8px; vertical-align: 1px; }
.page-note { margin: 22px 0 0; color: #a4a6a1; font-size: 11px; letter-spacing: .015em; text-align: center; }

@media (max-width: 520px) {
  .login-page { align-content: start; padding-top: max(24px, 9vh); }
  .login-card { padding: 34px 24px 28px; border-radius: 25px; }
  .login-form input { font-size: 16px; }
  h1 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Independent surfaces stay soft; nested controls use a smaller radius. */
:root {
  --orion-radius-control: 14px;
  --orion-radius-card: 18px;
  --orion-radius-dialog: 28px;
}
.login-card { border-radius: var(--orion-radius-dialog); }
.brand-mark { border-radius: var(--orion-radius-card); }
.login-form input, .login-submit { border-radius: var(--orion-radius-control); }
.password-field { border-radius: 0; }
.password-toggle { border-radius: 8px; }
.login-status { border-radius: 12px; }
