/* Sign-in pages (templates/signin.html). Standalone: no claude.css, no side nav.
   Tokens are DESIGN-console.md's; mockup https://claude.ai/artifact/VNXbz2Tw5yk8ov26kceuKr */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  color: #353A44;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; font-size: 18px; line-height: 1;
  display: inline-block; white-space: nowrap; direction: ltr;
  -webkit-font-smoothing: antialiased;
}

.si-page { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.si-waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.si-top { position: relative; height: 56px; border-bottom: 1px solid rgba(235, 238, 241, .8); display: flex; justify-content: center; }
.si-top__inner { width: 100%; max-width: 1040px; padding: 0 24px; display: flex; align-items: center; gap: 10px; }
.si-top__mark { border-radius: 6px; }
.si-top__name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: #21252C; }
.si-top__org { margin-left: auto; font-size: 13px; font-weight: 500; color: #596171; text-align: right; }

.si-frame { position: relative; flex: 1; display: flex; justify-content: center; }
.si-frame__inner {
  width: 100%; max-width: 1040px;
  border-left: 1px solid #EBEEF1; border-right: 1px solid #EBEEF1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 16px 104px;
}

.si-card {
  width: 100%; max-width: 420px; background: #FFFFFF; border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(64, 68, 82, .08), 0 15px 35px rgba(60, 66, 87, .12), 0 5px 15px rgba(0, 0, 0, .06);
  display: flex; flex-direction: column;
}
.si-card__body { padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.si-card__strip { padding: 16px 40px; background: #F6F8FA; border-top: 1px solid #EBEEF1; font-size: 13px; color: #596171; text-align: center; }

.si-head { display: flex; flex-direction: column; gap: 8px; }
.si-head h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: #21252C; }
.si-head p { margin: 0; font-size: 13px; line-height: 1.5; color: #596171; overflow-wrap: anywhere; }

.si-alert { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: 6px; font-size: 13px; line-height: 1.4; }
.si-alert--error { background: #FFE7F2; color: #B3093C; }
.si-alert--ok { background: #D7F7C2; color: #006908; }

.si-fields { display: flex; flex-direction: column; gap: 16px; }
.si-field { display: flex; flex-direction: column; gap: 8px; }
.si-field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.si-field label { font-size: 13px; font-weight: 500; color: #21252C; }

.si-input {
  width: 100%; height: 36px; padding: 0 12px;
  border: 1px solid #D8DEE4; border-radius: 6px; background: #FFFFFF;
  font: 400 14px Inter, system-ui, sans-serif; color: #21252C; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.si-input:focus { border-color: #D97757; box-shadow: 0 0 0 4px rgba(217, 119, 87, .32); }
.si-input[aria-invalid="true"] { border-color: #DF1B41; }
.si-input--mono { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .2em; }
.si-input--code { height: 44px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 20px; letter-spacing: .3em; text-align: center; }

.si-pw { position: relative; }
.si-pw .si-input { padding-right: 40px; }
.si-eye {
  position: absolute; right: 4px; top: 4px; width: 28px; height: 28px;
  border: 0; border-radius: 6px; background: transparent; color: #596171; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.si-eye:hover { background: #F6F8FA; color: #21252C; }
.si-eye:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(217, 119, 87, .32); }

.si-rules { margin: -4px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 12.5px; color: #596171; }
.si-rules li { display: flex; align-items: center; gap: 8px; }
.si-rules li .material-symbols-outlined { font-size: 16px; }
.si-rules li.is-met { color: #006908; }

.si-btn {
  width: 100%; height: 36px; border: 0; border-radius: 6px;
  background: #C15F3C; color: #FFFFFF; font: 500 14px Inter, system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12), 0 2px 5px rgba(60, 66, 87, .12);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.si-btn:hover { background: #A9502F; }
.si-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(217, 119, 87, .32); }
.si-btn[disabled] { background: #F2D6CA; cursor: default; }
.si-spin { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #FFFFFF; border-radius: 50%; animation: si-spin .8s linear infinite; }
@keyframes si-spin { to { transform: rotate(360deg); } }

.si-link { color: #B5573A; text-decoration: none; font-weight: 500; }
.si-link:hover { color: #A9502F; text-decoration: underline; }
.si-link--small { font-size: 12.5px; }
.si-note { margin: 0; align-self: center; font-size: 13px; color: #596171; }
.si-back { align-self: center; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: #B5573A; text-decoration: none; }
.si-back:hover { color: #A9502F; text-decoration: underline; }
.si-back .material-symbols-outlined { font-size: 16px; }

@media (max-width: 560px) {
  .si-frame__inner { padding-top: 40px; border: 0; }
  .si-card__body { padding: 28px 24px; }
  .si-card__strip { padding: 14px 24px; }
  .si-top__org { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .si-spin { animation-duration: 2s; }
}
