/* Official vector wordmarks extracted from the supplied AdoraWorks logo sheet. */
.brand-lockup { display: grid; gap: 3px; min-width: 0; }
.brand .brand-wordmark { width: 183px; height: 30px; object-fit: contain; object-position: left; }
.brand .brand-light { display: none; }
[data-theme="light"] .brand .brand-dark { display: none; }
[data-theme="light"] .brand .brand-light { display: block; }
.brand-lockup small { padding-left: 2px; font-size: 6.5px; letter-spacing: 1px; }
.auth-brand .brand-wordmark { width: 222px; height: 37px; }
.auth-brand .brand-lockup small { font-size: 7px; letter-spacing: 1.1px; }

/* The same scene is rendered in sign-in and in its settings preview. */
.auth-story { isolation: isolate; min-width: 0; padding: 38px 52px; }
.auth-story::before { content: none; }
.auth-story-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.auth-story-shade { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.auth-story.has-image .auth-story-shade { background: linear-gradient(90deg, #050d1b8a, #070e2030 65%, #060d1810); }
.auth-story-copy { margin: 60px auto 28px; max-width: 450px; }
.auth-story-copy h1 { white-space: pre-line; overflow-wrap: anywhere; font-weight: 600; font-size: clamp(34px, 3.4vw, 52px); line-height: 1.2; letter-spacing: -1.9px; }
.auth-story-copy > p { white-space: pre-line; overflow-wrap: anywhere; }
.auth-footer { position: relative; flex-wrap: wrap; overflow-wrap: anywhere; }
.auth-story[data-scene-theme="dark"] { color: #f4f6fd; background: #07101e; border-color: #22324a; }
.auth-story[data-scene-theme="dark"] .brand .brand-dark { display: block; }
.auth-story[data-scene-theme="dark"] .brand .brand-light { display: none; }
.auth-story[data-scene-theme="dark"] .brand small { color: #94a9c6; }
.auth-story[data-scene-theme="dark"] .auth-story-copy .eyebrow { color: #bba7ff; }
.auth-story[data-scene-theme="dark"] .auth-story-copy > p { color: #b4c4da; }
.auth-story[data-scene-theme="light"] { color: #11142a; border-color: #e7edfa; background: radial-gradient(ellipse at 100% 20%, #c8dfff8a, transparent 60%), linear-gradient(135deg, #fff, #f0f6ff); }
.auth-story[data-scene-theme="light"]:not(.has-image)::before { content: ''; z-index: -1; position: absolute; width: 630px; height: 630px; top: -365px; right: -365px; border-radius: 50%; border: 2px solid #ffffffa8; background: linear-gradient(130deg, #cce9ff6b, #aaa1ff61); box-shadow: 0 0 0 64px #bbc1ff30, 0 0 0 66px #ffffff94, 0 0 0 140px #c5d6ff24, 0 0 0 142px #ffffff64; }
.auth-story[data-scene-theme="light"] .brand .brand-dark { display: none; }
.auth-story[data-scene-theme="light"] .brand .brand-light { display: block; }
.auth-story[data-scene-theme="light"] .brand small { color: #596183; }
.auth-story[data-scene-theme="light"] .auth-story-copy .eyebrow { color: #845bfa; }
.auth-story[data-scene-theme="light"] .auth-story-copy > p { color: #586683; }
.auth-story[data-scene-theme="light"] .auth-footer { color: #7882a1; }
.auth-story[data-scene-theme="light"].has-image .auth-story-shade { background: linear-gradient(90deg, #f7faffea, #f2f6ff9a 65%, #eef3ff40); }
.auth-story[data-scene-theme="light"] .orbit-label { border-color: #dedcfa; color: #454968; background: #ffffffa8; }
.auth-story[data-scene-theme="light"] .constellation-center { background: linear-gradient(145deg, #0d1428, #080e1c); box-shadow: 0 0 0 30px #8a6cff06, 0 0 0 31px #8a6cff05, 0 0 0 65px #8a6cff04; }
.auth-form-wrap { max-width: 420px; }
.auth-form-wrap h2 { font-size: clamp(25px, 2vw, 32px); line-height: 1.3; letter-spacing: -.8px; }
.auth-submit { background: linear-gradient(120deg, #7541ef, #7953ed) !important; }
[data-theme="light"] .auth-panel { background: linear-gradient(160deg, #fff, #fafcff); color: #11142a; }
[data-theme="light"] .auth-panel input { background: #f1f5ff; color: #11142a; border-color: #dfe5f5; }
[data-theme="light"] .auth-panel .password-input { background: #f1f5ff; border-color: #dfe5f5; }

.login-theme-tabs { display: flex; gap: 10px; margin: 24px 0; }
.login-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.login-branding-form { min-width: 0; display: grid; gap: 17px; }
.login-branding-form > label:not(.branding-checkbox) { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.login-branding-form textarea { resize: vertical; width: 100%; min-width: 0; font: inherit; color: var(--text); background: var(--surface); padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; line-height: 1.6; }
.login-branding-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.login-image-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.upload-branding { position: relative; cursor: pointer; }
.upload-branding input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-branding:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.branding-checkbox { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.branding-checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }
.login-save-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.login-preview-wrap { position: sticky; top: 24px; min-width: 0; }
.login-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.scene-preview { min-height: 490px; padding: 24px; border: 1px solid #263650; border-radius: 16px; }
.scene-preview .auth-brand .brand-wordmark { width: 153px; height: 25px; }
.scene-preview .auth-brand .brand-lockup small { font-size: 5px; }
.scene-preview .auth-story-copy { margin: 48px 0 24px; }
.scene-preview .auth-story-copy h1 { font-size: clamp(25px, 2.2vw, 35px); letter-spacing: -1px; }
.scene-preview .auth-story-copy .eyebrow { font-size: 7px; letter-spacing: 1px; }
.scene-preview .auth-story-copy > p { font-size: 12px; }
.scene-preview .auth-constellation { width: 250px; height: 170px; margin: 20px auto 0; }
.scene-preview .constellation-center { left: 95px; top: 50px; width: 64px; height: 64px; border-radius: 18px; }
.scene-preview .constellation-center img { width: 44px; height: 24px; }
.scene-preview .orbit-label { font-size: 7px; padding: 6px 8px; }
.scene-preview .orbit-one { left: 38px; top: 5px; }
.scene-preview .orbit-two { top: 28px; }
.scene-preview .orbit-three { top: 109px; }
.scene-preview .orbit-four { bottom: 0; right: 12px; }
.scene-preview .auth-footer, .scene-preview .auth-footer > span { font-size: 7px; }
.login-preview-wrap > .field-hint { margin-top: 12px; }
@media (max-width: 1100px) {
  .login-editor-grid { grid-template-columns: 1fr; }
  .login-preview-wrap { position: static; max-width: 490px; width: 100%; }
}
@media (max-width: 900px) {
  .auth-story { padding: 30px; }
  .auth-story-copy { margin-top: 52px; }
  .auth-story-copy h1 { font-size: 38px; }
  .auth-brand .brand-wordmark { width: 185px; height: 31px; }
}
@media (max-width: 600px) {
  .topbar .brand img.brand-wordmark { width: 105px; height: 20px; }
  .topbar .brand-lockup small { display: none; }
  .auth-story { padding: 24px; min-height: 220px; border-right: 0; border-bottom: 1px solid; }
  .auth-story-copy { margin: 30px 0 0; }
  .auth-story-copy h1 { font-size: 28px; letter-spacing: -.8px; }
  .auth-brand .brand-wordmark { width: 175px; height: 29px; }
  .auth-brand .brand-lockup small { font-size: 6px; }
  .scene-preview { min-height: 450px; padding: 22px; border: 1px solid #263650; }
  .scene-preview .auth-story-copy { margin: 35px 0 25px; }
  .scene-preview .auth-story-copy h1 { font-size: 28px; margin: 15px 0; }
  .scene-preview .auth-story-copy > p, .scene-preview .auth-story-copy .eyebrow, .scene-preview .auth-constellation, .scene-preview .auth-footer, .scene-preview .auth-footer > span { display: block; }
  .scene-preview .auth-footer { display: flex; }
  .scene-preview .auth-story-copy > p { font-size: 12px; }
  .login-editor-grid { gap: 24px; }
  .login-theme-tabs .button, .login-image-controls .button { font-size: 11px; }
}
