/* Sign-in dialog: account type first, then the form. */
.lg-back { position: fixed; inset: 0; z-index: var(--z-toast); display: grid; place-items: center; padding: 24px; background: var(--overlay); }
.lg-back[hidden] { display: none; }
.lg { display: flex; flex-direction: column; width: min(500px, 100%); max-height: 100%; border: 2px solid var(--v-ink); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 6px 6px 0 var(--primary); overflow: hidden; }
.lg-main { display: flex; flex: 1; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; padding: 14px 24px 16px; overflow-y: auto; }
.lg-head { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 12px; margin-right: -10px; }
.lg-head h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 22px; line-height: 30px; font-weight: 800; color: var(--heading); }
.lg-head h2::before { content: ''; flex: none; width: 6px; height: 20px; border-radius: 2px; background: var(--tdtu-red-500); }
.lg-head h2:focus { outline: none; }

.lg-cards { display: grid; flex: none; gap: 12px; }
.lg-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 2px solid var(--v-ink); border-radius: var(--radius-md); background: var(--primary-soft); box-shadow: 2px 2px 0 var(--v-ink); color: var(--v-ink); text-align: left; transition: transform var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast); }
.lg-card:hover { background: var(--v-cream); box-shadow: 3px 3px 0 var(--v-ink); transform: translate(-1px, -1px); }
.lg-card > .ic { flex: none; width: 20px; height: 20px; }
.lg-tile { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 2px solid var(--v-ink); border-radius: var(--radius-md); background: var(--paper); }
.lg-tile .ic { width: 28px; height: 28px; stroke-width: 1.8; }
.lg-card-t { flex: 1; min-width: 0; font-family: var(--font-heading); font-size: 16px; line-height: 22px; font-weight: 800; color: var(--heading); }

.lg-change { display: inline-flex; align-items: center; align-self: flex-start; flex: none; gap: 6px; height: 34px; padding: 0 12px 0 9px; border: 1.5px solid var(--tdtu-blue-200); border-radius: var(--radius-md); background: var(--primary-soft); color: var(--v-ink); font-size: 13.5px; font-weight: 600; transition: transform var(--duration-fast), box-shadow var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast); }
.lg-change:hover { border-color: var(--v-ink); background: var(--v-cream); box-shadow: 2px 2px 0 var(--v-ink); transform: translate(-1px, -1px); }
.lg-change .ic { width: 16px; height: 16px; }

.lg-form { display: grid; flex: none; gap: 12px; }
.lg-f label { display: block; margin-bottom: 5px; font-size: 13.5px; line-height: 19px; font-weight: 600; color: var(--heading); }
.lg-f .rs-input { height: 44px; }
.lg-pw { position: relative; }
.lg-pw .rs-input { padding-right: 46px; }
.lg-eye { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); color: var(--v-ink); transition: background var(--duration-fast); }
.lg-eye:hover { background: var(--v-yellow); }
.lg-eye .ic { width: 18px; height: 18px; }
.lg-err { color: var(--accent); font-size: 13.5px; line-height: 19px; font-weight: 500; }
.lg-err:empty { display: none; }
.lg-go { justify-content: center; width: 100%; height: 46px; }

.lg-skip { align-self: center; flex: none; height: 36px; padding: 0 14px; border: 1.5px solid transparent; border-radius: var(--radius-md); color: var(--primary); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: transform var(--duration-fast), box-shadow var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast); }
.lg-skip:hover { border-color: var(--v-ink); background: var(--v-cream); box-shadow: 2px 2px 0 var(--v-ink); color: var(--v-ink); text-decoration: none; transform: translate(-1px, -1px); }
