[hidden] { display: none !important; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 15%, rgba(184, 91, 207, .18), transparent 32%),
    radial-gradient(circle at 82% 82%, rgba(48, 124, 213, .17), transparent 34%),
    #f4f6f8;
}

.auth-card {
  width: min(100%, 470px);
  padding: 42px;
  border: 1px solid rgba(114, 83, 147, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(38, 27, 61, .16);
}

.auth-logo { width: min(310px, 82%); height: auto; margin: 0 0 32px; }
.auth-card h1 { margin: 7px 0 12px; color: #241f31; font-size: clamp(30px, 5vw, 42px); letter-spacing: -.04em; }
.auth-intro { margin: 0 0 27px; color: #657078; line-height: 1.65; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { color: #30293d; font-size: 13px; font-weight: 800; }
.auth-form input { width: 100%; min-height: 50px; padding: 0 15px; border: 1px solid #ccd3d8; border-radius: 8px; background: #fff; color: #241f31; font: inherit; }
.auth-form input:focus { border-color: #9b58c6; outline: 3px solid rgba(155, 88, 198, .13); }
.auth-form .primary-button { justify-content: center; margin-top: 7px; border: 0; cursor: pointer; }
.auth-form .primary-button:disabled { cursor: wait; opacity: .65; }
.auth-message { min-height: 22px; margin: 16px 0 0; color: #74508d; font-size: 13px; line-height: 1.5; }
.auth-message.error { color: #a43838; }
.auth-note { margin: 27px 0 0; padding-top: 20px; border-top: 1px solid #e8e5eb; color: #879096; font-size: 11px; text-align: center; }
.auth-loading-card { text-align: center; }
.auth-emblem { width: 82px; height: 82px; margin-bottom: 15px; }
.auth-spinner { width: 34px; height: 34px; margin: 0 auto 20px; border: 3px solid #e8dcef; border-top-color: #9b58c6; border-radius: 50%; animation: auth-spin .8s linear infinite; }
.investor-email { max-width: 190px; overflow: hidden; color: #657078; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sign-out-button { padding: 8px 11px; border: 1px solid #d8dde1; border-radius: 7px; background: #fff; color: #4c4555; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; }
.sign-out-button:hover { border-color: #a55bc9; color: #7a3ba0; }
[data-private-path][aria-busy="true"] { cursor: wait; opacity: .65; }
.password-dialog { width: min(92vw, 460px); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 28px 80px rgba(32, 22, 51, .3); }
.password-dialog::backdrop { background: rgba(22, 17, 31, .58); backdrop-filter: blur(3px); }
.password-dialog form { display: grid; gap: 10px; padding: 28px; }
.password-dialog form > p:not(.auth-message) { margin: 0 0 9px; color: #687178; font-size: 13px; line-height: 1.5; }
.password-dialog label { color: #30293d; font-size: 13px; font-weight: 800; }
.password-dialog input { min-height: 47px; padding: 0 13px; border: 1px solid #ccd3d8; border-radius: 8px; font: inherit; }
.password-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.password-actions .primary-button { border: 0; cursor: pointer; }

@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .auth-shell { padding: 16px; }
  .auth-card { padding: 30px 23px; }
  .investor-email { display: none; }
}
