.auth-page { min-height: 100vh; max-width: 1440px; margin: auto; padding: 0 clamp(22px, 6vw, 90px); background: radial-gradient(ellipse at 95% 48%, rgba(104,13,191,0.045), transparent 48%); }
.startup-page { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; background: radial-gradient(circle at 50% 45%, rgba(104,13,191,0.08), transparent 48%), var(--color-bg); }.startup-page__card { display: grid; justify-items: center; gap: 1.1rem; width: min(340px, 100%); padding: 2rem; border: 1px solid var(--color-border); border-radius: 24px; background: rgba(255,255,255,0.9); box-shadow: 0 18px 48px rgba(34,10,99,0.08); }.startup-page__card img { width: 190px; height: auto; }.startup-page__card p { margin: 0; color: var(--color-text-soft); font-size: 0.9rem; }.startup-page__spinner { width: 28px; height: 28px; border: 3px solid rgba(104,13,191,0.16); border-top-color: var(--color-violet); border-radius: 50%; animation: startup-spin 0.8s linear infinite; }@keyframes startup-spin { to { transform: rotate(360deg); } }
.auth-header { height: 118px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--color-border); gap: 24px; }
.auth-header img { width: 240px; height: auto; margin-left: -18px; }
.auth-header > span { font-size: 0.8rem; color: var(--color-text-soft); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr); align-items: center; gap: clamp(40px, 6vw, 90px); padding: 52px 0 55px; }
.auth-story .eyebrow { display: flex; align-items: center; gap: 9px; font-size: 0.72rem; margin-bottom: 22px; color: var(--color-violet); letter-spacing: 0.1em; }
.auth-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
.auth-story .hero-title { color: var(--color-primary); font-size: clamp(3.2rem, 5.8vw, 5.5rem); line-height: 1.05; font-weight: 700; letter-spacing: -0.055em; }
.auth-story .hero-title span { color: var(--color-violet); }
.auth-story__intro { max-width: 470px; font-size: 1.03rem; line-height: 1.75; margin: 23px 0 30px; color: var(--color-text-soft); }
.auth-keyboard { max-width: 515px; border: 1px solid #e3dced; padding: 14px 14px 0; border-radius: 18px; background: #fff; box-shadow: 0 18px 34px rgba(34,10,99,0.065); overflow: hidden; }
.auth-keyboard__label { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 14px; color: var(--color-primary); font-size: 0.53rem; letter-spacing: 0.16em; font-weight: 700; }
.auth-keyboard__label > span:last-child { color: var(--color-accent); font-size: 1.1rem; }
.auth-keyboard__keys { display: flex; height: 115px; }
.auth-key { position: relative; flex: 1; border: 1px solid #e7e3ef; background: linear-gradient(#fff, #f9f9fb); border-bottom: 0; border-radius: 0 0 5px 5px; }
.auth-key.has-black::after { content: ""; z-index: 1; position: absolute; top: 0; right: -31%; width: 62%; height: 62%; border-radius: 0 0 4px 4px; background: linear-gradient(#28223a, #121223); box-shadow: 0 4px 0 #0c0a1e; }
.auth-key.is-blue { background: linear-gradient(#fff 20%, rgba(12,65,196,0.19)); box-shadow: inset 0 -4px #0c41c4; }
.auth-key.is-violet { background: linear-gradient(#fff 20%, rgba(87,41,255,0.2)); box-shadow: inset 0 -4px #5729ff; }
.auth-key.is-magenta { background: linear-gradient(#fff 20%, rgba(206,0,113,0.16)); box-shadow: inset 0 -4px #ce0071; }
.auth-method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 28px; max-width: 530px; }
.auth-method > span { display: grid; gap: 5px; color: var(--color-text-soft); font-size: 0.68rem; }
.auth-method strong { font-size: 0.82rem; color: var(--color-primary); font-weight: 700; }
.auth-panel.card { display: grid; gap: 26px; margin: 0; padding: 26px 32px 28px; border-radius: 23px; background: #fff; box-shadow: 0 15px 60px rgba(34,10,99,0.075); }
.auth-panel__logo { width: 214px; height: auto; justify-self: center; }
.auth-panel .eyebrow { margin-bottom: 10px; font-size: 0.65rem; color: var(--color-violet); }
.auth-panel h2 { margin: 0; color: var(--color-primary); font-size: 1.7rem; line-height: 1.17; letter-spacing: -0.025em; }
.auth-panel .muted { margin: 14px 0 0; font-size: 0.89rem; line-height: 1.7; }
.auth-panel .form-grid { gap: 11px; }
.auth-panel .button, .auth-panel .button-ghost { padding: 13px 18px; width: 100%; font-size: 0.85rem; border-radius: 11px; min-height: 47px; }
.auth-enter { display: flex; justify-content: space-between; align-items: center; }
.auth-enter > span { font-size: 1.3rem; line-height: 1; }
.auth-panel__note { margin: -7px 0 0; color: var(--color-text-soft); font-size: 0.7rem; text-align: center; line-height: 1.6; }
.auth-panel__error { margin: -12px 0 0; color: #a33838; font-size: 0.78rem; text-align: center; line-height: 1.5; }
.auth-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--color-border); padding: 23px 0; gap: 20px; font-size: 0.69rem; color: var(--color-text-soft); }
.role-choice { width: min(540px, calc(100vw - 44px)); margin: min(20vh, 150px) auto; padding: clamp(1.7rem, 5vw, 3rem); }.role-choice h1 { margin: 0.2rem 0 0.8rem; color: var(--color-primary); font-size: clamp(2rem, 4vw, 2.8rem); }.role-choice .muted { line-height: 1.65; }.role-choice__actions { display: grid; gap: 0.75rem; margin: 1.6rem 0 0.8rem; }.role-choice__actions .button, .role-choice__actions .button-secondary { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.auth-layout--single { grid-template-columns: minmax(0, 560px); justify-content: center; }.auth-panel--pending { gap: 1.15rem; align-content: center; }.auth-panel--pending h1 { margin: 0.25rem 0 0.7rem; color: var(--color-primary); font-size: clamp(2rem, 5vw, 3rem); }.pending-access__icon { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 1.1rem; background: linear-gradient(135deg, #ede9fe, #fce7f3); color: var(--color-primary-strong); font-size: 2rem; font-weight: 800; }.pending-access__notice { display: grid; gap: 0.4rem; padding: 1rem 1.1rem; border: 1px solid #ddd6fe; border-radius: 1rem; background: #faf8ff; color: var(--color-text-soft); line-height: 1.55; }.pending-access__notice strong { color: var(--color-primary); }
.auth-email { border-top: 1px solid var(--color-border); padding-top: 0.95rem; }.auth-email summary { cursor: pointer; color: var(--color-primary); font-size: 0.82rem; font-weight: 700; }.auth-email__form { display: grid; gap: 0.75rem; margin-top: 0.9rem; }.auth-email__form label { display: grid; gap: 0.35rem; color: var(--color-text-soft); font-size: 0.76rem; font-weight: 700; }.auth-email__form input { width: 100%; min-height: 43px; border: 1px solid var(--color-border); border-radius: 10px; padding: 0.65rem 0.75rem; font: inherit; }.auth-email__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }.auth-email__actions .button-secondary, .auth-email__actions .button-ghost { min-height: 42px; padding: 0.6rem; font-size: 0.76rem; }.auth-email__reset { justify-self: start; padding: 0; border: 0; background: transparent; color: var(--color-violet); cursor: pointer; font: inherit; font-size: 0.75rem; font-weight: 700; }
@media (max-width: 960px) {
  .auth-page { padding: 0 30px; }
  .auth-header { height: 94px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 35px; padding-top: 40px; }
  .auth-story .hero-title { font-size: clamp(3rem, 5.8vw, 4.6rem); }
  .auth-story__intro { font-size: 0.92rem; }
  .auth-method { grid-template-columns: 1fr; gap: 12px; }
  .auth-method > span { display: block; }
  .auth-method strong { display: inline-block; min-width: 65px; }
  .auth-panel.card { padding: 24px; }
}
@media (max-width: 740px) {
  .auth-page { padding: 0 22px; }
  .auth-header { height: 82px; }
  .auth-header img { width: 195px; margin-left: -13px; }
  .auth-header > span { display: none; }
  .auth-layout { grid-template-columns: 1fr; gap: 34px; padding: 35px 0; }
  .auth-panel.card { order: -1; }
  .auth-story .hero-title { font-size: clamp(3rem, 11.5vw, 4.7rem); }
  .auth-story .eyebrow { font-size: 0.62rem; margin-bottom: 18px; }
  .auth-story__intro { margin: 20px 0 24px; max-width: 520px; }
  .auth-keyboard { max-width: none; }
  .auth-keyboard__keys { height: 91px; }
  .auth-method { grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 22px; }
  .auth-method > span { display: grid; gap: 6px; font-size: 0.63rem; }
  .auth-method strong { min-width: 0; }
  .auth-panel.card { max-width: 480px; width: 100%; margin: 0 auto; padding: 21px 27px 27px; gap: 24px; }
  .auth-panel__logo { width: 183px; }
  .auth-panel h2 { font-size: 1.65rem; }
  .auth-footer { flex-direction: column; gap: 6px; font-size: 0.65rem; }
}
