/* Access uses paired workspace button tokens, not the legacy white login text. */
* { box-sizing: border-box; }
html { min-height: 100%; }
body.workspace-redesign.access-redesign {
  margin: 0; min-height: 100vh; min-height: 100dvh; padding: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-workspace-sidebar); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.access-layout {
  width: 100%; max-width: 1240px; min-height: min(760px, calc(100dvh - 96px));
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto; column-gap: 64px;
  animation: access-enter 220ms ease-out both;
}
.access-brand { grid-column: 1; grid-row: 1; }
.access-redesign .logo { display: flex; align-items: center; min-height: 72px; }
.access-redesign .logo img { max-width: 220px; max-height: 64px; object-fit: contain; object-position: left center; }
.access-redesign .logo img.brand-logo-aira { width: 180px; height: 180px; max-height: none; margin-block: -54px; }
.access-redesign .brand-name { font-size: 24px; font-weight: 600; overflow-wrap: anywhere; }
.access-intro { grid-column: 1; grid-row: 2; align-self: center; padding: 48px 0; }
.access-eyebrow { margin: 0 0 24px; font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.access-intro h2 { font-size: clamp(44px, 4.8vw, 60px); font-weight: 550; letter-spacing: -.045em; line-height: 1.1; margin: 0; }
.access-intro h2 span { color: var(--muted); }
.access-description { margin: 28px 0 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.access-rules { margin-top: 44px; display: flex; flex-direction: column; gap: 9px; max-width: 360px; }
.access-rules i { display: block; height: 1px; background: var(--border-subtle); transform-origin: left; }
.access-rules i:nth-child(2) { width: 82%; opacity: .75; }
.access-rules i:nth-child(3) { width: 64%; opacity: .55; }
.access-rules i:nth-child(4) { width: 46%; opacity: .35; }
.access-rules i:nth-child(5) { width: 28%; opacity: .2; }
.access-capabilities { grid-column: 1; grid-row: 3; display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 12px; padding: 16px 0; }
.access-capabilities span + span { border-left: 1px solid var(--border-subtle); padding-left: 24px; }
.access-form-region { grid-column: 2; grid-row: 1 / 4; border-left: 1px solid var(--border-sidebar); padding-left: 64px; display: flex; align-items: center; justify-content: center; min-width: 0; }
.workspace-redesign.access-redesign .shell { width: 100%; max-width: 360px; }
.workspace-redesign.access-redesign .card { padding: 0; background: transparent; border: 0; box-shadow: none; }
.access-form-heading { margin-bottom: 32px; }
.access-form-heading .access-eyebrow { margin-bottom: 12px; }
.access-form-heading h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
.access-form-heading > p:last-child { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.access-redesign .form-group { margin-bottom: 20px; }
.access-redesign label { display: block; margin-bottom: 8px; color: var(--text); font-size: 13px; font-weight: 500; }
.workspace-redesign.access-redesign input {
  display: block; width: 100%; min-width: 0; height: 48px; padding: 12px 14px;
  border: 1px solid var(--border-subtle); border-radius: 8px;
  background: var(--bg-workspace-input); color: var(--text); font: inherit; font-size: 15px;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.access-redesign input::placeholder { color: var(--muted); opacity: .8; }
.access-redesign input:hover { border-color: var(--muted); }
.access-redesign input:focus { border-color: var(--text); outline: 2px solid var(--text); outline-offset: 2px; }
.access-redesign input:is(:autofill, :-webkit-autofill) { -webkit-text-fill-color: var(--text); caret-color: var(--text); box-shadow: inset 0 0 0 1000px var(--bg-workspace-input); }
.access-redesign .password-wrapper { position: relative; }
.access-redesign .password-wrapper input { padding-right: 50px; }
.access-redesign .toggle-password { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; transition: background-color 120ms; }
.access-redesign .toggle-password img { width: 20px; height: 20px; opacity: .7; }
.access-redesign .toggle-password:hover { background: var(--workspace-hover); }
.access-redesign .toggle-password:hover img { opacity: 1; }
.access-redesign .toggle-password:active { opacity: .75; }
.access-redesign button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.workspace-redesign.access-redesign .primary-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 48px; margin-top: 28px; padding: 12px 16px;
  border: 1px solid transparent; border-radius: 8px; background: var(--action-primary);
  color: var(--action-primary-text); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background-color 120ms, transform 120ms;
}
.workspace-redesign.access-redesign .primary-btn:hover:not(:disabled) { background: var(--action-primary-hover); }
.access-redesign .primary-btn:active:not(:disabled) { transform: translateY(1px); }
.access-redesign .primary-btn:disabled { cursor: not-allowed; opacity: .75; }
.access-button-arrow { font-size: 19px; font-weight: 400; line-height: 1; }
.access-redesign .primary-btn[aria-busy="true"] .access-button-arrow { font-size: 0; width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: access-spin 800ms linear infinite; }
.access-help { border-top: 1px solid var(--border-sidebar); margin: 32px 0 0; padding-top: 24px; font-size: 12px; line-height: 1.8; color: var(--text); }
.access-help span { color: var(--muted); }
.access-redesign .alert { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: 8px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.access-redesign .alert.error { color: var(--status-danger); border-color: var(--status-danger); }
.access-redesign .alert.success { color: var(--text); }
.access-redesign #step2 { display: none; }
.access-redesign #step2.active { display: block; }
.access-redesign .step-indicator { margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.workspace-redesign.access-redesign .title { font-size: 28px; line-height: 1.2; letter-spacing: -.035em; margin: 0 0 12px; text-align: left; }
.access-redesign .subtitle, .access-redesign .hint { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 24px; }
.access-redesign .hint { margin-top: 12px; }
.access-redesign .photo-preview { display: none; margin: 16px 0; }
.access-redesign .photo-preview img { display: block; max-width: 100%; max-height: 180px; border-radius: 8px; }
.access-redesign input[type="file"] { height: auto; min-height: 48px; }
.access-redesign input::file-selector-button { border: 0; border-radius: 4px; background: var(--action-primary); color: var(--action-primary-text); padding: 6px 8px; margin-right: 8px; cursor: pointer; }
@keyframes access-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes access-spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) {
  body.workspace-redesign.access-redesign { padding: 32px; }
  .access-layout { column-gap: 40px; }
  .access-form-region { padding-left: 40px; }
}
@media (max-width: 959px) {
  body.workspace-redesign.access-redesign { padding: 32px 24px; }
  .access-layout { display: flex; flex-direction: column; gap: 40px; max-width: 400px; min-height: 0; }
  .access-intro, .access-capabilities { display: none; }
  .access-form-region { padding: 0; border: 0; display: block; }
  .workspace-redesign.access-redesign .shell { max-width: none; }
  .access-redesign .logo { min-height: 60px; }
  .access-redesign .logo img.brand-logo-aira { width: 150px; height: 150px; margin-block: -45px; }
  .workspace-redesign.access-redesign input { font-size: 16px; }
}
@media (max-width: 390px) {
  .access-layout { gap: 28px; }
  .access-form-heading h1 { font-size: 26px; }
}
@media (max-height: 620px) {
  body.workspace-redesign.access-redesign { align-items: flex-start; padding-block: 24px; }
  .access-layout { min-height: 0; }
  .access-intro { padding: 24px 0; }
  .access-rules { display: none; }
  .access-form-heading { margin-bottom: 24px; }
  .access-help { margin-top: 24px; padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .access-layout, .access-redesign .primary-btn[aria-busy="true"] .access-button-arrow { animation: none; }
  .access-redesign *, .access-redesign *::before, .access-redesign *::after { transition: none; scroll-behavior: auto; }
}
