.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.password-eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; color: #7f96aa; cursor: pointer; font-size: 18px; }
.password-eye:hover { color: var(--cyan); }
.caps-tip { display: flex !important; align-items: center; gap: 5px; margin-top: 6px; color: var(--amber) !important; font-size: 11px !important; }
.caps-tip.hidden { display: none !important; }
.login-page { padding: 20px; min-height: 100dvh; }
.login-panel { max-width: 100%; }
.login-panel button:disabled { cursor: wait; opacity: .7; }
.login-panel .error { overflow-wrap: anywhere; }
.service.is-disconnected { color: var(--amber); }
.license-detail-terms { margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface2); }
.license-detail-terms h4 { margin: 0 0 12px; }
.license-detail-terms dl { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; }
.license-detail-terms dt { color: var(--muted); font-size: 12px; }
.license-detail-terms dd { margin: 5px 0 0; overflow-wrap: anywhere; }
.license-detail-terms p { color: var(--muted); line-height: 1.7; margin: 14px 0 0; }
.license-detail-tabs { display:flex; gap:8px; margin:0 0 14px; }
.license-detail-tabs button { flex:1; border:1px solid var(--line); border-radius:8px; padding:10px 12px; color:var(--muted); background:var(--surface); cursor:pointer; }
.license-detail-tabs button[aria-selected="true"] { color:var(--cyan); border-color:#318aa5; background:#133040; }
.license-detail-tabs button:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
#modal .modal-head { position:sticky; top:0; z-index:2; background:var(--surface); }
@media(max-height:600px) { .login-panel { padding: 24px; } }
@media(max-height:700px) {
  #modal:has(.license-detail-tabs) { padding:12px; }
  #modal .modal-card:has(.license-detail-tabs) { max-height:calc(100dvh - 24px); }
}
@media(min-width:900px) and (max-height:700px) {
  .license-detail-terms dl { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:600px) { .license-detail-terms dl { grid-template-columns: minmax(0,1fr); } }
