.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px 16px; }
.login-theme { position: fixed; z-index: 10; top: 16px; right: 16px; }
.login-shell { display: grid; width: min(calc(100vw - 32px), 900px); gap: var(--ala-space-8); align-items: center; }
.login-intro { padding: 8px; }
.login-intro .ala-brand__wordmark { width: min(100%, 300px); }
.login-intro .ala-brand__tagline { display: block; margin-top: 13px; font-size: 10px; }
.login-intro h1 { margin: 28px 0 0; font-family: var(--ala-font-display); font-size: clamp(38px, 12vw, 68px); line-height: .94; letter-spacing: -.06em; }
.login-intro > p:last-child { max-width: 480px; margin: 18px 0 0; color: var(--ala-text-secondary); }
.login-card { padding: clamp(20px, 6vw, 34px); }
.login-card h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.login-card .subtitle { margin: 6px 0 24px; color: var(--ala-text-secondary); font-size: 13px; }
.login-card label { display: block; margin: 0 0 7px; color: var(--ala-text-secondary); font-size: 12px; font-weight: 600; }
.login-card select, .login-card input { width: 100%; min-height: 49px; border: 1px solid var(--ala-border-strong); border-radius: var(--ala-radius-md); padding: 11px 13px; background: var(--ala-surface-raised); color: var(--ala-text); }
.login-card input { margin: 0 0 17px; }
.login-select { position: relative; display: block; margin: 0 0 17px; }
.login-select::after { position: absolute; top: 50%; right: 18px; width: 8px; height: 8px; border-right: 2px solid var(--ala-text-secondary); border-bottom: 2px solid var(--ala-text-secondary); content: ""; pointer-events: none; transform: translateY(-68%) rotate(45deg); }
.login-select select { margin: 0; padding-right: 48px; appearance: none; -webkit-appearance: none; }
.login-card select:focus, .login-card input:focus { border-color: var(--ala-primary); }
.login-error { margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--ala-danger) 50%, var(--ala-border)); border-radius: var(--ala-radius-md); padding: 12px 14px; background: var(--ala-danger-soft); color: var(--ala-danger); font-size: 13px; font-weight: 750; }
.profile-hero { display: grid; padding: 20px; }
.profile-hero h1 { margin: 0; overflow-wrap: anywhere; font-size: 24px; line-height: 1.1; }
.profile-hero p { margin: 3px 0 0; color: var(--ala-text-muted); font-size: 12px; }
.profile-hero .page-kicker { margin: 0 0 4px; color: var(--ala-primary-strong); }
.profile-name-editor { display: grid; gap: var(--ala-space-5); margin-top: 16px; padding: 20px; }
.profile-name-editor h2 { margin: 2px 0 4px; font-size: 20px; }
.profile-name-editor > div > p:last-child { margin: 0; color: var(--ala-text-secondary); font-size: 13px; }
.profile-name-editor form { display: grid; gap: 9px; }
.profile-name-editor label { color: var(--ala-text-secondary); font-size: 12px; font-weight: 600; }
.profile-name-editor input,
.profile-name-editor select { width: 100%; min-height: 49px; border: 1px solid var(--ala-border-strong); border-radius: var(--ala-radius-md); padding: 11px 13px; background: var(--ala-surface-raised); color: var(--ala-text); font: inherit; }
.profile-name-editor input:focus,
.profile-name-editor select:focus { border-color: var(--ala-primary); }
.profile-name-editor__select { position: relative; display: block; }
.profile-name-editor__select::after { position: absolute; top: 50%; right: 18px; width: 8px; height: 8px; border-right: 2px solid var(--ala-text-secondary); border-bottom: 2px solid var(--ala-text-secondary); content: ""; pointer-events: none; transform: translateY(-68%) rotate(45deg); }
.profile-name-editor__select select { padding-right: 48px; appearance: none; -webkit-appearance: none; }
.profile-name-editor .notice { margin: 3px 0; }
.profile-name-editor .hint { margin: -2px 0 2px; color: var(--ala-text-muted); font-size: 12px; }
.profile-name-editor button { justify-self: start; }
.profile-actions { margin-top: 16px; overflow: hidden; }
.profile-action { display: flex; width: 100%; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-bottom: 1px solid var(--ala-border); padding: 13px 16px; background: transparent; color: var(--ala-text); text-align: left; text-decoration: none; cursor: pointer; }
.profile-action:last-child { border-bottom: 0; }
.profile-action span { font-weight: 600; }
.profile-action strong { color: var(--ala-text-muted); font-size: 11px; text-align: right; }
.logout-action { margin-top: 16px; }

@media (min-width: 760px) {
    .login-shell { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 56px; }
}
