/* Authentication inherits the workspace's type, colour and control vocabulary. */
.auth-page {
  min-height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; overflow: auto; background: var(--surf);
}
.auth-panel {
  width: min(100%, 440px); padding: 38px 40px 34px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
}
.auth-brand { display: flex; align-items: center; margin-bottom: 38px; }
.auth-brand svg { width: 106px; height: auto; }
.auth-panel h1 { margin: 0; color: var(--navy); font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -.02em; }
.auth-detail { margin: 8px 0 24px; color: var(--mut); font-size: 14px; line-height: 21px; }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 6px; min-width: 0; color: var(--navy); font-size: 13px; line-height: 18px; font-weight: 500; }
.auth-field input {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 6px;
  color: var(--ink); background: #fff; font-size: 15px; font-weight: 400; outline: none;
}
.auth-field input:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px #d9e6ff; }
.auth-hint { margin: -11px 0 0; color: var(--mut); font-size: 12px; line-height: 17px; }
.auth-primary, .auth-secondary, .auth-social button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px;
  border-radius: 6px; font-size: 14px; line-height: 20px; font-weight: 500;
}
.auth-primary { width: 100%; border: 1px solid var(--blue); color: #fff; background: var(--blue); }
.auth-primary:hover:not(:disabled) { background: var(--blue2); }
.auth-secondary, .auth-social button { border: 1px solid var(--line2); color: var(--navy); background: #fff; }
.auth-secondary:hover:not(:disabled), .auth-social button:hover:not(:disabled) { background: var(--surf-blue); }
.auth-page button:disabled { opacity: .65; cursor: wait; }
.auth-page button:focus-visible { outline: 3px solid #a9c7ff; outline-offset: 2px; }
.auth-link { border: 0; padding: 0; color: var(--blue); background: transparent; font-size: inherit; font-weight: 600; }
.auth-link:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 2px; }
.auth-align-right { margin-top: -7px; text-align: right; font-size: 13px; }
.auth-method, .auth-switch, .auth-small { margin: 18px 0 0; text-align: center; font-size: 13px; line-height: 20px; color: var(--mut); }
.auth-small { margin-top: 12px; }
.auth-separator { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--mut); font-size: 12px; line-height: 18px; }
.auth-separator::before, .auth-separator::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.auth-social { display: grid; gap: 10px; }
.auth-message { margin: 0 0 18px; padding: 10px 12px; border-radius: 6px; background: #edf5ef; color: #285a37; font-size: 13px; line-height: 19px; overflow-wrap: anywhere; }
.auth-message.error { background: #fff0f2; color: #9c1236; }
.auth-recipient { margin: -10px 0 20px; color: var(--navy); font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.auth-code-row { display: flex; align-items: end; gap: 10px; }
.auth-code-row .auth-field { flex: 1; }
.auth-code-row .auth-secondary { white-space: nowrap; }
.auth-full { width: 100%; }
.sidebar { position: relative; }
.user-card .who b, .user-card .who .plan { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-email { margin-bottom: 8px; overflow-wrap: anywhere; }
.account-error { margin: 8px 0 0; color: var(--red); overflow-wrap: anywhere; }
.account-signout, .account-admin { display: block; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; color: var(--navy); background: transparent; text-align: left; font-size: 13px; text-decoration: none; }
.account-signout:hover, .account-admin:hover { background: var(--surf); }
.account-signout:focus-visible, .account-admin:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.credit-gate-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; color: var(--blue2); background: var(--surf-blue); border-radius: 10px; }
.credit-account { display: grid; gap: 5px; margin-bottom: 22px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: 6px; }
.credit-account span { color: var(--mut); font-size: 12px; }
.credit-account strong { color: var(--navy); font-size: 14px; overflow-wrap: anywhere; }
.credit-actions { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; }
.credit-progress { margin: -6px 0 20px; color: var(--mut); font-size: 13px; }
.credit-progress p { margin: 0; line-height: 20px; }
.credit-progress-error { color: var(--red); }
.credit-task { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mobile-account { display: none; }
@media (max-width: 900px) {
  .mobile-account { display: block; position: fixed; bottom: 16px; right: 16px; z-index: 45; }
  .mobile-account-toggle { width: 40px; height: 40px; border: 2px solid #fff; box-shadow: 0 2px 10px rgba(5, 30, 87, .24); }
  .mobile-user-pop { position: absolute; bottom: 48px; right: 0; width: 220px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(20, 30, 70, .14); color: var(--mut); font-size: 12px; }
}
@media (max-width: 480px) {
  .auth-page { display: block; padding: 0; background: #fff; }
  .auth-panel { width: 100%; min-height: 100%; padding: 32px 24px; border: 0; border-radius: 0; }
  .auth-brand { margin-bottom: 38px; }
  .auth-code-row { flex-wrap: wrap; }
  .auth-code-row .auth-field { flex-basis: 100%; }
}
