/* MOCHI Hermes login skin (v1). Scoped to standalone /login page.
   No authentication, API, or main dashboard logic is changed. */
:root { color-scheme: dark; }
html { min-height: 100%; }
body {
  min-height: 100svh; height: auto; width: 100%; padding: 28px 18px;
  position: relative; overflow-x: hidden;
  background:
    radial-gradient(ellipse 56% 60% at 50% 44%, rgba(66,56,108,.32), transparent 76%),
    radial-gradient(ellipse 68% 50% at 48% 115%, rgba(57,34,80,.17), transparent 68%),
    linear-gradient(140deg, #15172c 0%, #111427 50%, #141428 100%);
  color: #f8f9ff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 52% 42% at 50% 49%, transparent 36%, rgba(10,11,29,.18) 100%);
}
.card {
  position: relative; isolation: isolate; overflow: hidden;
  width: min(100%, 494px); max-width: 494px; padding: 47px 42px 44px;
  border-radius: 26px; border: 1px solid rgba(111,137,222,.49);
  background: linear-gradient(153deg, rgba(34,44,77,.96), rgba(22,29,55,.985) 76%);
  box-shadow: 0 28px 78px rgba(3,6,26,.56), 0 1px 1px rgba(194,197,249,.12) inset;
  text-align: center;
}
.card::before {
  content: ""; position: absolute; inset: 1px 1px auto 1px; height: 64%;
  z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse 75% 80% at 50% -23%, rgba(102,120,212,.12), transparent 88%);
}
.logo {
  width: 83px; height: 83px; margin: 0 auto 22px; border-radius: 23px;
  display: flex; align-items: center; justify-content: center;
  color: #fffef6;
  background: linear-gradient(135deg, #ffc43c 0%, #ff9b41 37%, #ff694e 70%, #ef416a 100%);
  border: 1px solid rgba(255,236,176,.55);
  box-shadow: 0 0 0 1px rgba(255,154,110,.12), 0 10px 34px rgba(244,88,74,.29),
              0 1px 4px rgba(255,240,202,.25) inset;
}
.logo svg { display: block; width: 58px; height: 58px; color: #fff9e8; }
h1 { margin: 0 0 7px; color: #fbfbff; font-size: clamp(28px, 5vw, 33px);
  font-weight: 730; letter-spacing: -.8px; line-height: 1.23; }
.sub { color: #a8b2da; font-size: 14px; line-height: 1.5; margin: 0 0 31px; }
form { margin: 0; }
.password-field { position: relative; margin-bottom: 18px; text-align: left; }
.password-field__icon {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  pointer-events: none; display: flex; align-items: center; color: #a6b3d6;
}
.password-field__icon svg { display: block; width: 19px; height: 19px; }
.password-field input {
  display: block; width: 100%; height: 59px; margin: 0; padding: 0 17px 0 51px;
  border-radius: 14px; border: 1px solid rgba(117,147,231,.45);
  background: linear-gradient(155deg, rgba(47,59,93,.62), rgba(38,51,85,.78));
  box-shadow: 0 2px 6px rgba(7,10,25,.15) inset, 0 0 0 1px rgba(8,10,30,.1);
  color: #f8f9ff; font-size: 15px; font-weight: 400; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.password-field input::placeholder { color: #909fc7; opacity: 1; }
.password-field:focus-within .password-field__icon { color: #c7d4ff; }
.password-field input:focus, .password-field input:focus-visible {
  border-color: rgba(138,173,255,.91);
  background: rgba(43,57,93,.85);
  box-shadow: 0 0 0 3px rgba(103,145,240,.16), 0 4px 16px rgba(18,27,60,.25);
}
button[type="submit"] {
  display: flex; align-items: center; justify-content: center; position: relative;
  width: 100%; height: 60px; margin: 0; padding: 0 50px; border-radius: 14px;
  border: 1px solid rgba(255,198,131,.65);
  background: linear-gradient(105deg, #ffb337 0%, #ff9144 36%, #ff6550 72%, #ed4167 100%);
  color: #fff; font-family: inherit; font-size: 17px; font-weight: 680; letter-spacing: -.1px;
  cursor: pointer; box-shadow: 0 10px 34px rgba(242,88,72,.28), 0 1px 3px rgba(255,255,255,.25) inset;
  transition: transform .17s ease, filter .17s ease, box-shadow .17s ease;
}
button[type="submit"] .submit-arrow {
  position: absolute; right: 23px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center;
}
button[type="submit"] .submit-arrow svg { width: 22px; height: 22px; }
button[type="submit"]:hover:not(:disabled) {
  filter: brightness(1.075); transform: translateY(-1px);
  box-shadow: 0 13px 38px rgba(242,88,72,.35), 0 1px 3px rgba(255,255,255,.3) inset;
}
button[type="submit"]:active:not(:disabled) { transform: translateY(0); filter: brightness(.99); }
button[type="submit"]:focus-visible, .oidc-login:focus-visible,
.passkey-login:focus-visible { outline: 3px solid rgba(150,184,255,.88); outline-offset: 4px; }
button:disabled { opacity: .5; cursor: wait; box-shadow: none; }
.passkey-login, .oidc-login {
  width: 100%; min-height: 48px; padding: 12px 15px; margin-top: 15px;
  color: #d9e3ff; background: rgba(74,89,138,.17);
  border: 1px solid rgba(123,155,236,.35); border-radius: 13px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.45;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.passkey-login:hover, .oidc-login:hover { background: rgba(74,89,138,.3); border-color: rgba(150,179,255,.63); }
.err { margin-top: 17px; padding: 10px 12px; border: 1px solid rgba(255,116,131,.3);
  background: rgba(222,67,90,.075); color: #ff9aa7; border-radius: 11px;
  font-size: 13px; line-height: 1.55; }
@media (max-width: 560px) {
  body { padding: 18px 16px; }
  .card { width: 100%; padding: 36px 25px 33px; border-radius: 22px; }
  .logo { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 18px; }
  .logo svg { width: 52px; height: 52px; }
  h1 { font-size: 29px; }
  .sub { font-size: 13px; margin-bottom: 26px; }
  .password-field input, button[type="submit"] { height: 55px; }
}
@media (max-width: 359px) {
  .card { padding-left: 19px; padding-right: 19px; }
  .sub { font-size: 12px; }
  button[type="submit"] { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  button, input { transition: none !important; }
}
