/* webShared/ui-sign-in.css
 *
 * Sign-in page chrome shared by Admin and Workspace. Linked only from
 * adminUi/signIn.html and workspaceUi/signIn.html. Do not add this file to
 * admin.html or workspaceShell.js: it styles bare `body`, `button`, and
 * `label`, and would restyle the whole app.
 *
 * `.pw-wrap` lives in ui-pw-wrap.css (same three declarations on the
 * demo pages). Sign-in pages link both files.
 */

body {
  font-family: var(--lc-font-sans, system-ui, Segoe UI, Arial);
  font-size: var(--lc-size-root, 16px);
  background: #0b1220;
  color: var(--lc-color-text-main, #e5e7eb);
  margin: 0;
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2in;
  box-sizing: border-box;
}

.card {
  width: min(620px, 94vw);
  background: var(--lc-bg-card, rgba(15, 23, 42, .95));
  border: var(--lc-border-card, 1px solid rgba(255, 255, 255, .08));
  border-radius: var(--lc-radius-card, 14px);
  padding: var(--lc-padding-card, 18px 20px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: var(--lc-radius-card, 14px);
  border: 1px solid var(--lc-accent-60);
  background: var(--lc-bg-admin-page, #020617);
  flex-shrink: 0;
}

.brand .t {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand .title {
  font-size: var(--lc-size-app-brand-title, 22px);
  font-weight: var(--lc-weight-app-brand-title, 600);
  letter-spacing: .02em;
}

.sub {
  color: var(--lc-color-text-main, #e5e7eb);
  font-size: var(--lc-size-page-subtitle, 14px);
  margin-top: 6px;
}

label {
  display: block;
  margin: 14px 0 6px;
  color: var(--lc-color-label, #cbd5e1);
  font-size: var(--lc-size-field-label, 16px);
  font-weight: var(--lc-weight-field-label, 700);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  border-radius: var(--lc-radius-control, 10px);
  border: var(--lc-border-control, 1px solid rgba(255, 255, 255, .12));
  background: var(--lc-bg-input, #071023);
  color: var(--lc-color-text-main, #e5e7eb);
  padding: var(--lc-padding-input, 10px 12px);
  font-size: var(--lc-size-control-input, 16px);
  font-family: var(--lc-font-sans, system-ui, Segoe UI, Arial);
  box-sizing: border-box;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

button {
  padding: var(--lc-padding-button-y, 12px) var(--lc-padding-button-x, 22px);
  border-radius: var(--lc-radius-control, 10px);
  border: var(--lc-border-control, 1px solid rgba(255, 255, 255, .12));
  background: #1f2937;
  color: var(--lc-color-text-main, #e5e7eb);
  font-size: var(--lc-size-primary-button, 14px);
  font-weight: var(--lc-weight-primary-button, 800);
  cursor: pointer;
}

button.secondary {
  background: #0f172a;
}

.err {
  margin-top: 10px;
  color: var(--lc-color-error);
  font-size: var(--lc-size-page-subtitle, 14px);
  min-height: 18px;
}

.switch {
  margin-top: 10px;
  font-size: var(--lc-size-page-subtitle, 14px);
  color: var(--lc-color-text-main, #e5e7eb);
}

.switch a {
  color: var(--lc-color-text-main, #e5e7eb);
  text-decoration: none;
  border-bottom: 1px solid rgba(229, 231, 235, 0.4);
  padding-bottom: 1px;
}

.switch a:hover {
  color: var(--lc-color-text-main, #ffffff);
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.pw-wrap input {
  padding-right: 42px;
  box-sizing: border-box;
}

.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: var(--lc-bg-admin-page, #020617);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--lc-color-label, #cbd5e1);
  border-radius: var(--lc-radius-admin-input, 8px);
  cursor: pointer;
}

.pw-toggle:hover {
  background: var(--lc-bg-control-hover, #0b1220);
  border-color: rgba(148, 163, 184, .35);
}

.pw-toggle:focus-visible {
  outline: 2px solid rgba(96, 165, 250, .85);
  outline-offset: 2px;
}

.pw-toggle svg {
  display: block;
  width: 16px;
  height: 16px;
}
