/* PHASE 5E: Authentication / account issue */

  .session-page{
    --text: #111827;
    --muted: #6b7280;
    --muted-deep: #4b5563;
    --line: #e5e7eb;
    --line-strong: #d1d5db;
    --line-card: #d7dce4;
    --card: #ffffff;
    --primary: #111827;
    --primary-soft: #374151;
    --notice-bg: #eff6ff;
    --notice-line: #bfdbfe;
    --notice-text: #1d4ed8;
    --alert-bg: #fef2f2;
    --alert-line: #fecaca;
    --alert-text: #b91c1c;
    --focus-ring: 0 0 0 3px rgba(59,130,246,.10);
    min-height: 100dvh;
    width: 100%;
    padding: 8px 0;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .session-shell{
    width: min(100%, 820px);
    margin: 0 auto;
  }

  .session-card{
    position: relative;
    background: var(--ui-surface);
    border: 1px solid var(--line-card);
    border-radius: 32px;
    box-shadow:
      var(--ui-shadow-xs);
    padding: 52px 56px 40px;
    overflow: hidden;
  }

  .session-card::before{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
      transparent;
    pointer-events: none;
  }

  .session-card > *{
    position: relative;
    z-index: 1;
  }

  .session-card__head,
  .session-flash,
  .session-form,
  .session-links,
  .session-footer{
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .session-card__head{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 28px;
  }

  .session-card__head-main{
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .session-card__eyebrow{
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    white-space: nowrap;
    box-shadow: none;
    text-align: center;
  }

  .session-card__title{
    margin: 0;
    color: var(--text);
    font-size: 34px;
    line-height: 1.24;
    font-weight: 700;
    letter-spacing: .01em;
    text-align: center;
  }

  .session-flash{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: var(--ui-radius-xl);
    padding: 14px 16px;
    border: 1px solid var(--line);
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 16px;
    box-shadow:
      var(--ui-shadow-md);
  }

  .session-flash i{
    margin-top: 2px;
    flex-shrink: 0;
  }

  .session-flash--notice{
    background: transparent;
    border-color: var(--notice-line);
    color: var(--notice-text);
  }

  .session-flash--alert{
    background: transparent;
    border-color: var(--alert-line);
    color: var(--alert-text);
  }

  .session-form{
    display: grid;
    gap: 20px;
  }

  .session-field{
    display: grid;
    gap: 8px;
  }

  .session-label{
    padding-left: 2px;
    color: var(--muted-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
  }

  .session-input-wrap{
    position: relative;
  }

  .session-input-icon{
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    pointer-events: none;
    z-index: 2;
  }

  .session-input{
    width: 100%;
    min-height: 58px;
    padding: 0 18px 0 50px;
    border-radius: var(--ui-radius-xl);
    border: 1px solid #d8dde5;
    background: var(--ui-surface);
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    box-sizing: border-box;
    box-shadow:
      var(--ui-shadow-input);
    transition:
      border-color .18s ease,
      box-shadow .18s ease,
      background .18s ease,
      transform .08s ease;
  }

  .session-input::placeholder{
    color: #9ca3af;
    font-weight: 500;
  }

  .session-input:hover{
    border-color: #cfd6df;
    background: var(--ui-surface);
  }

  .session-input:focus{
    outline: none;
    border-color: #93c5fd;
    background: var(--ui-surface);
    box-shadow:
      var(--ui-shadow-input), var(--ui-focus-ring);
  }

  .session-input:active{
    transform: translateY(1px);
  }

  .session-input--password{
    padding-right: 58px;
  }

  .session-password-toggle{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .08s ease;
  }

  .session-password-toggle:hover{
    background: transparent;
    color: var(--primary);
  }

  .session-password-toggle:active{
    transform: translateY(-50%) scale(.98);
  }

  .session-help{
    min-height: 20px;
    margin: 0;
    padding-left: 2px;
    color: #dc2626;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .session-remember{
    padding-top: 4px;
  }

  .session-check{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
  }

.session-check__input{
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  opacity: 1;
  position: static;
  pointer-events: auto;
  cursor: pointer;
  accent-color: var(--primary);
}

  .session-check__label{
    color: var(--muted-deep);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.6;
  }

  .session-check__input:checked + .session-check__box{
    border-color: var(--primary);
    background: transparent;
    box-shadow:
      var(--ui-shadow-input);
    transform: translateY(1px);
  }

  .session-check__input:checked + .session-check__box::after{
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  .session-actions{
    padding-top: 8px;
  }

  .btn-plan{
    appearance: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--ui-radius-xl);
    min-height: 60px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    transition:
      transform .08s ease,
      box-shadow .18s ease,
      border-color .18s ease,
      background .18s ease,
      color .18s ease,
      opacity .18s ease,
      filter .18s ease;
    box-shadow:
      var(--ui-shadow-xs);
  }

  .btn-plan:hover{
    transform: translateY(-1px);
  }

  .btn-plan:active{
    transform: translateY(2px);
  }

  .btn-plan--primary{
    color: var(--ui-color-text);
    border-color: var(--ui-color-text);
    background:
      transparent;
    box-shadow:
      var(--ui-shadow-xs);
  }

  .btn-plan--primary:hover{
    filter: brightness(1.03);
    box-shadow:
      var(--ui-shadow-sm);
  }

  .session-submit[aria-busy="true"]{
    opacity: .9;
    pointer-events: none;
  }

  .session-links{
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .session-link{
    appearance: none;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-deep);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .08s ease;
  }

  .session-link:hover{
    background: transparent;
    color: var(--text);
    transform: translateY(-1px);
  }

  .session-footer{
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
  }

  .session-modal{
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .session-modal.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .session-modal__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,.32);
    backdrop-filter: blur(4px);
  }

  .session-modal__dialog{
    position: relative;
    width: min(100%, 440px);
    background: var(--ui-surface);
    border: 1px solid var(--line-card);
    border-radius: 28px;
    box-shadow:
      var(--ui-shadow-lg);
    padding: 30px 24px 24px;
    text-align: center;
    z-index: 1;
  }

  .session-modal__close{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
  }

  .session-modal__close:hover{
    background: transparent;
    color: var(--text);
  }

  .session-modal__icon{
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--primary);
    box-shadow:
      var(--ui-shadow-xs);
  }

  .session-modal__icon i{
    font-size: 30px;
    line-height: 1;
  }

  .session-modal__title{
    margin: 0 0 10px;
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
  }

  .session-modal__message{
    margin: 0;
    color: var(--muted-deep);
    font-size: 14px;
    line-height: 1.85;
    white-space: normal;
  }

  @media (max-width: 639.98px){
    .session-page{
      padding: 0;
    }

    .session-shell{
      width: 100%;
    }

    .session-card{
      border-radius: 24px;
      padding: 28px 20px 22px;
    }

    .session-card__head,
    .session-flash,
    .session-form,
    .session-links,
    .session-footer{
      max-width: 100%;
    }

    .session-card__title{
      font-size: 28px;
    }

    .session-input{
      min-height: 52px;
      font-size: 16px;
    }

    .btn-plan{
      min-height: 54px;
      font-size: 15px;
    }

    .session-modal__dialog{
      border-radius: 22px;
      padding: 24px 18px 20px;
    }
  }

  @media (min-width: 640px){
    .session-page{
      padding: 0;
    }

    .session-card{
      min-height: 660px;
    }
  }


.account-create-page{
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --line:#e5e7eb;
  --card:#ffffff;
  --soft:#f8fafc;
  --accent:#111827;
  --accent-weak:#9ca3af;
  --focus:rgba(59,130,246,.25);
  --danger:#dc2626;
  --danger-bg:#fef2f2;
  --danger-border:#fecaca;
--grad-a:rgba(17,24,39,.08);
  --grad-b:rgba(17,24,39,.02);

  max-width:980px;
  margin:24px auto 40px;
  padding:0 16px;
  color:var(--text);
}

.account-create-page .page-context{
  border:1px solid var(--border);
  background:
    var(--ui-surface);
  border-radius:var(--ui-radius-xl);
  box-shadow:var(--ui-shadow-xs);
  padding:16px 18px 14px;
  margin:0 0 16px;
}

.account-create-page .hero-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.account-create-page .hero-main{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  flex:1 1 auto;
}









.account-create-page .hero-hints{
  margin-top:12px;
  border-top:1px dashed var(--border);
  padding-top:12px;
  display:grid;
  gap:8px;
}

.account-create-page .hint-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
  line-height:1.6;
}

.account-create-page .hint-item i{
  color:#374151;
  margin-top:2px;
}

.account-create-page .card{
  background:var(--ui-surface);
  border:1px solid var(--line);
  border-radius:var(--ui-radius-xl);
  padding:20px;
  box-shadow:var(--ui-shadow-xs);
}

.account-create-page .form-card{
  max-width:100%;
}

.account-create-page .form-alert{
  margin-bottom:16px;
  border:1px solid var(--danger-border);
  background:transparent;
  border-radius:14px;
  padding:14px 16px;
  color:#991b1b;
}

.account-create-page .form-alert__title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:700;
}

.account-create-page .form-alert__list{
  margin:8px 0 0 22px;
  padding:0;
  font-size:13px;
  line-height:1.7;
  font-weight:700;
}

.account-create-page .account-form{
  display:grid;
  gap:18px;
}

.account-create-page .form-grid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.account-create-page .form-grid--id-role{
  grid-template-columns:minmax(180px, 3fr) minmax(0, 7fr);
  align-items:start;
}

.account-create-page .field{
  display:grid;
  gap:6px;
  min-width:0;
}

.account-create-page .field--full{
  grid-column:1 / -1;
}

.account-create-page .field--staff-code,
.account-create-page .field--role,
.account-create-page .field--office{
  min-width:0;
}

.account-create-page .field--office{
  grid-column:1 / -1;
  margin-top:0;
}

.account-create-page .field--login-inline,
.account-create-page .field--password-inline{
  min-width:0;
}

.account-create-page .label{
  margin:0;
  padding-left:2px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
}

.account-create-page .input-wrap{
  position:relative;
}

.account-create-page .input{
  width:100%;
  min-width:0;
  min-height:48px;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 42px 12px 44px;
  font-size:var(--ui-type-input-size);
  font-weight:var(--ui-type-input-weight);
  outline:none;
  background:var(--ui-surface);
  color:var(--text);
  box-sizing:border-box;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow:
    var(--ui-shadow-input);
}

.account-create-page .input--with-actions{
  padding-right:88px;
}

.account-create-page .input:focus{
  border-color:rgba(59,130,246,.55);
  box-shadow:
    var(--ui-shadow-input), var(--ui-focus-ring);
}

.account-create-page .input::placeholder{
  color:#9ca3af;
  font-weight:inherit;
}

.account-create-page .input-icon{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#6b7280;
  pointer-events:none;
  font-size:14px;
}

.account-create-page .input-action-button{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  border:0;
  background:transparent;
  color:#6b7280;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  transition:background .16s ease, color .16s ease, transform .08s ease;
}

.account-create-page .input-action-button:hover{
  background:transparent;
  color:var(--ui-color-text);
}

.account-create-page .input-action-button:active{
  transform:translateY(-50%) scale(.96);
}

.account-create-page .input-action-button:focus-visible{
  outline:none;
  box-shadow:var(--ui-shadow-input), var(--ui-focus-ring);
}

.account-create-page .copy-password-button{
  right:12px;
}

.account-create-page .help{
  min-height:18px;
  margin:0;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  line-height:1.5;
}

.account-create-page .role-choice-group{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(132px, 1fr));
  gap:10px;
}

.account-create-page #signup-role-group{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:flex-start;
  gap:10px;
}

.account-create-page #signup-role-group .role-choice{
  flex:0 0 auto;
}

.account-create-page .office-choice-group{
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
}

.account-create-page .role-choice{
  display:block;
  min-width:0;
}

.account-create-page .role-choice__input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.account-create-page .role-choice__button{
  display:inline-flex;
  width:100px;
  min-width:100px;
  max-width:100px;
  min-height:48px;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 14px;
  border-radius:var(--ui-radius-md);
  border:2px solid #8f98a6;
  color:#1f2937;
  background:var(--ui-surface);
  box-shadow:
    var(--ui-shadow-xs);
  font-size:13px;
  font-weight:700;
  text-align:center;
  cursor:pointer;
  transition:transform .08s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
  user-select:none;
  box-sizing:border-box;
}

.account-create-page .role-choice__button:hover{
  background:var(--ui-surface);
  box-shadow:
    var(--ui-shadow-sm);
}

.account-create-page .role-choice__button:active{
  transform:translateY(1px);
}

.account-create-page .role-choice__input:focus-visible + .role-choice__button{
  outline:none;
  box-shadow:
    var(--ui-shadow-input), var(--ui-focus-ring), var(--ui-shadow-xs);
}

.account-create-page .role-choice__input:checked + .role-choice__button,
.account-create-page .role-choice.is-selected .role-choice__button{
  background:transparent;
  color:var(--ui-color-text);
  border-color:#7d8796;
  box-shadow:
    var(--ui-shadow-xs);
  transform:translateY(1px);
}

.account-create-page .login-password-row{
  display:grid;
  grid-template-columns:minmax(240px, 1fr) minmax(320px, 1.25fr);
  gap:14px;
  align-items:start;
}

.account-create-page .password-inline-row{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:10px;
  align-items:center;
}

.account-create-page .input-wrap--password-outside .input{
  padding-right:88px;
}

.account-create-page .inline-generate-button{
  min-height:48px;
  padding:10px 16px;
}

.account-create-page .print-qr-render{
  position:absolute;
  left:-9999px;
  top:-9999px;
  width:160px;
  height:160px;
  overflow:hidden;
}

.account-create-page .actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:2px;
}

.account-create-page .actions-left,
.account-create-page .actions-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.account-create-page .btn-plan,
.account-create-page button.btn-plan,
.account-create-page a.btn-plan{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 16px;
  border-radius:var(--ui-radius-md);
  border:2px solid var(--accent-weak);
  color:var(--accent);
  background:var(--ui-surface);
  box-shadow:var(--ui-shadow-xs);
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .08s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  user-select:none;
}

.account-create-page .btn-plan:hover{
  background:var(--ui-surface);
  box-shadow:var(--ui-shadow-sm);
}

.account-create-page .btn-plan:active{
  transform:translateY(1px);
}

.account-create-page .btn-plan:focus-visible{
  outline:none;
  box-shadow:var(--ui-focus-ring);
}

.account-create-page .btn-primary{
  background:transparent;
  color:var(--ui-color-text);
  border-color:var(--accent);
}

.account-create-page .btn-primary:hover{
  background:var(--ui-surface);
  color:var(--ui-color-text);
  border-color:var(--accent);
}

.account-create-page .btn-primary[aria-busy="true"]{
  opacity:.85;
  pointer-events:none;
}

.account-create-page .btn-primary:disabled{
  opacity:.55;
  pointer-events:none;
  cursor:not-allowed;
}

@media (max-width: 768px){
  .account-create-page{
    margin-top:16px;
    padding:0 12px;
  }

  .account-create-page .page-context{
    padding:14px 14px 12px;
  }



  .account-create-page .card{
    padding:16px;
  }

  .account-create-page .form-grid,
  .account-create-page .form-grid--id-role{
    grid-template-columns:1fr;
    gap:14px;
  }

  .account-create-page .login-password-row{
    grid-template-columns:1fr;
    gap:14px;
  }

  .account-create-page .actions{
    flex-direction:column;
    align-items:stretch;
  }

  .account-create-page .actions-left,
  .account-create-page .actions-right{
    width:100%;
  }

  .account-create-page .btn-plan{
    width:100%;
  }

  .account-create-page .role-choice-group{
    grid-template-columns:1fr;
  }

  .account-create-page #signup-role-group{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:10px;
  }

  .account-create-page #signup-role-group .role-choice{
    flex:0 0 auto;
  }

  .account-create-page .password-inline-row{
    grid-template-columns:1fr;
  }
}


.auth-wrap{
  --bg: #f5f8ff;
  --bg-soft: #eaf1ff;
  --card: #ffffff;
  --text: #0e1726;
  --muted: #5b6b86;
  --line: #e4e9f5;
  --blue: #2f6bff;
  --blue-2: #4a86ff;
  --danger: #e04856;
  --ring:var(--ui-ring-info);
}

.auth-wrap{
  min-height:100dvh;
  display:grid;
  place-items:center;
  padding:20px;
}

.auth-card{
  width:min(520px, 100%);
  background: var(--ui-surface);
  border:1px solid var(--line);
  border-radius:22px;
  padding:28px 22px;
  box-shadow:var(--ui-shadow-xs);
}

@media (min-width: 640px){
  .auth-card{
    width:min(600px, 92vw);
    padding:34px 28px;
  }

  .auth-title{
    font-size:26px;
  }

  .auth-wrap .input{
    height:52px;
  }
}

@media (min-width: 960px){
  .auth-card{
    width:min(700px, 88vw);
    padding:40px 34px;
  }

  .auth-title{
    font-size:28px;
  }

  .auth-wrap .input{
    height:56px;
  }
}

.auth-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
  text-align:center;
}

.auth-logo{
  width:68px;
  height:68px;
  border-radius:var(--ui-radius-xl);
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:0;
  background:transparent;
  color:var(--ui-color-text);
  box-shadow:var(--ui-shadow-xs);
}

.auth-logo i{
  display:block;
  font-size:26px;
  line-height:1;
  transform: translateY(0);
}

.auth-title{
  font-size:24px;
  font-weight:700;
  letter-spacing:.2px;
  margin:2px 0 0;
}

.auth-sub{
  color:var(--muted);
  font-size:13.5px;
}

.info{
  display:flex;
  align-items:flex-start;
  gap:10px;
  background:var(--ui-surface);
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  font-size:13.5px;
  color:var(--text);
  margin-bottom:12px;
}

.info i{
  color:var(--blue);
}

.form-grid{
  gap:16px;
}

.auth-wrap .field{
  display:grid;
  gap:6px;
}

.label{
  font-size:13.5px;
  color:var(--muted);
  padding-left:15px;
}

.auth-wrap .input{
  width:100%;
  box-sizing:border-box;
  appearance:none;
  background:var(--ui-surface);
  color:var(--text);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 48px;
  transition:border-color .15s, box-shadow .15s, background .15s, transform .05s;
}

.input::placeholder{
  color:var(--muted);
}

.input:focus{
  outline:none;
  border-color:var(--blue);
  box-shadow:var(--ui-ring-info);
}

.input:active{
  transform:translateY(1px);
}

.input--readonly,
.input[readonly]{
  background:transparent;
  color:#6b7280;
}

.input-icon.left{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  line-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.input-icon.left i{
  display:block;
  font-size:16px;
  line-height:1;
}

.password-toggle{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  background:transparent;
  border:0;
  color:var(--muted);
  cursor:pointer;
  padding:6px;
  border-radius:10px;
  line-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.password-toggle:hover{
  color:var(--blue);
  background:transparent;
}

.password-toggle i{
  display:block;
  font-size:16px;
  line-height:1;
}

.help{
  font-size:12.5px;
  color:var(--muted);
  padding-left:15px;
  margin:0;
}

.actions{
  display:grid;
  gap:10px;
  margin-top:6px;
}

.auth-wrap .btn{
  width:100%;
  border:0;
  border-radius:14px;
  padding:12px 16px;
  font-weight:700;
  background:transparent;
  color:var(--ui-color-text);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:transform .05s ease, filter .15s ease, opacity .15s ease, box-shadow .15s;
  box-shadow:var(--ui-shadow-xs);
  text-decoration:none;
}

.btn:hover{
  filter:brightness(1.05);
}

.btn:active{
  transform:translateY(1px);
}

.btn[aria-busy="true"]{
  opacity:.9;
  pointer-events:none;
}

.btn-secondary-link{
  background:var(--ui-surface);
  color:var(--blue);
  border:1px solid var(--line);
  box-shadow:none;
}

.btn-secondary-link:hover{
  filter:none;
  background:transparent;
}

.notice,
.alert{
  margin-bottom:12px;
  padding:12px 14px;
  border-radius:var(--ui-radius-md);
  font-size:13.5px;
  border:1px solid var(--line);
  background:var(--ui-surface);
}

.alert{
  border-color:var(--danger);
  color:var(--danger);
}

.notice{
  border-color:var(--blue);
  color:var(--blue);
}

.footer{
  margin-top:18px;
  font-size:12.5px;
  color:var(--muted);
  text-align:center;
}

@media (max-width: 640px){
  .auth-wrap{
    padding-left:12px;
    padding-right:12px;
  }
}

@media (max-width: 380px){
  .auth-wrap{
    padding-left:8px;
    padding-right:8px;
  }
}


/* Recoverable pages */
.auth-simple-page {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: clamp(20px, 5vw, 48px) 16px;
}

.auth-simple-card {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-xs);
}

.auth-simple-head {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.auth-simple-head h1,
.auth-simple-head p,
.auth-simple-eyebrow {
  margin: 0;
}

.auth-simple-head h1 {
  color: #0f172a;
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}

.auth-simple-head > p:last-child {
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
}

.auth-simple-eyebrow {
  color: #2563eb;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.auth-simple-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #bfdbfe;
  border-radius: 15px;
  background: transparent;
  color: #2563eb;
  font-size: 20px;
}

.auth-simple-form {
  display: grid;
  gap: 16px;
}

.auth-simple-field {
  display: grid;
  gap: 7px;
}

.auth-simple-field label {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.auth-simple-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface);
  color: #0f172a;
  font: inherit;
  outline: none;
}

.auth-simple-input:focus {
  border-color: #60a5fa;
  box-shadow: var(--ui-shadow-input), var(--ui-focus-ring);
}

.auth-simple-help {
  margin: 0;
  color: #64748b;
  font-size: 11px;
}

.auth-simple-links {
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  text-align: center;
}

.auth-simple-links a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.auth-simple-links a:hover {
  text-decoration: underline;
}

/* Neutral state refinements */
.session-check__input:checked + .session-check__box,
.account-create-page .role-choice__input:checked + .role-choice__button,
.account-create-page .role-choice.is-selected .role-choice__button,
.auth-wrap .btn {
  background: transparent;
}

.auth-wrap .btn {
  border: 1px solid var(--blue);
  color: var(--blue);
}


.auth-wrap .auth-error-list {
  margin: 6px 0 0 18px;
}


/* R46: account issuing controls share the one-pixel action-button contract. */
.account-create-page .hint-item{font-size:12px;font-weight:600;line-height:1.55}
.account-create-page .role-choice-group,
.account-create-page .office-choice-group{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:9px}
.account-create-page .role-choice{width:auto;flex:none}
.account-create-page .role-choice__button{width:auto;min-width:100px;max-width:none;min-height:40px;white-space:nowrap;padding:8px 14px;border:1px solid #9ca3af;border-radius:var(--ui-radius-md);box-shadow:none;line-height:1.3}
.account-create-page .role-choice__input:checked + .role-choice__button,
.account-create-page .role-choice.is-selected .role-choice__button{border:1px solid #2563eb;background:#eaf2ff;color:#1e40af;box-shadow:inset 0 0 0 1px #2563eb;transform:none}
.account-create-page .role-choice__button:hover{border-color:#64748b;background:#f8fafc;box-shadow:none}
.account-create-page .role-choice__input:checked + .role-choice__button:hover{background:#dbeafe}
.account-create-page .role-choice__input:focus-visible + .role-choice__button{outline:3px solid #93c5fd;outline-offset:2px;box-shadow:none}
.account-create-page .btn-plan,
.account-create-page button.btn-plan,
.account-create-page a.btn-plan{border-width:1px;box-shadow:none}
.account-create-page .field--office{grid-column:1/-1;align-self:start}
.account-create-page .office-choice-group .role-choice__button{min-width:100px;white-space:nowrap}
@media(max-width:768px){.account-create-page .role-choice-group,.account-create-page .office-choice-group{display:flex}.account-create-page .role-choice__button{width:auto}}
