:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #111827; background: #cffafe; }
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #cffafe; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.login-page { display: flex; min-height: 100vh; justify-content: center; padding: 72px 24px; }
.login-card { width: min(448px, 100%); height: fit-content; padding: 0 0 24px; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / 8%); }
.login-logo { display: block; width: 100%; height: 192px; margin: 0 0 16px; object-fit: contain; }
.login-content { padding: 0 24px; }
h1 { margin: 0 0 13px; font-size: 20px; line-height: 1.4; font-weight: 500; }
.portal-subtitle { margin: 0 0 16px; color: #374151; font-size: 14px; }
.login-form, .code-form { display: grid; gap: 8px; }
label { color: #111827; font-size: 14px; font-weight: 500; line-height: 1.5; }
input { display: block; width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; outline: 0; color: #111827; background: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / 5%); font-size: 14px; }
input:focus { border-color: #06b6d4; box-shadow: 0 0 0 2px rgb(6 182 212 / 22%); }
.login-form button, .code-form button { min-height: 32px; margin-top: 16px; border: 0; border-radius: 6px; color: #fff; background: #0891b2; font-size: 14px; font-weight: 600; box-shadow: 0 1px 2px rgb(15 23 42 / 10%); }
.login-form button:hover:not(:disabled), .code-form button:hover:not(:disabled) { background: #06b6d4; }
.login-form button:disabled, .code-form button:disabled { cursor: default; opacity: .5; }
.preview-secondary { margin-top: 0 !important; color: #0e7490 !important; background: transparent !important; box-shadow: none !important; text-decoration: underline; }
.setup-signin { margin: 20px 0 0; color: #475569; font-size: 14px; }
.setup-signin a { color: #0e7490; }
.session-operations-disclosure { margin-top: 18px; border-top: 1px solid #e5e7eb; padding-top: 14px; }
.session-operations-disclosure summary { cursor: pointer; color: #475569; font-size: 13px; font-weight: 600; }
.session-operations-disclosure summary:hover { color: #0e7490; }
.session-operations-disclosure[open] summary { margin-bottom: 16px; }
.session-operations-disclosure h2 { margin: 0; font-size: 16px; font-weight: 600; }
.session-operations-disclosure .portal-subtitle { text-align: left; }
.form-error { margin: 0; color: #b91c1c; font-size: 13px; line-height: 1.4; }
.form-status { display: flex; align-items: center; gap: 7px; margin: 0; color: #475569; font-size: 13px; line-height: 1.4; }
.form-status::before { width: 12px; height: 12px; flex: 0 0 auto; border: 2px solid #a5f3fc; border-top-color: #0891b2; border-radius: 999px; content: ""; animation: login-spinner .75s linear infinite; }
@keyframes login-spinner { to { transform: rotate(360deg); } }
.modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgb(107 114 128 / 40%); }
.code-dialog { position: relative; width: min(512px, 100%); overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 20px 25px rgb(15 23 42 / 16%); }
.code-dialog header { min-height: 56px; padding: 16px; border-bottom: 1px solid #e5e7eb; }
.code-dialog h2 { margin: 0; padding-right: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #111827; font-size: 20px; font-weight: 400; line-height: 24px; }
.code-form { padding: 16px; gap: 12px; }
.code-form p:not(.form-error) { margin: 0; color: #6b7280; text-align: center; font-size: 14px; line-height: 1.5; }
.code-form button { width: 100%; margin-top: 0; }
.resend-code-row { display: grid; justify-items: center; gap: 5px; padding: 0 16px 16px; }
.resend-code { padding: 0; border: 0; color: #0e7490; background: transparent; font-size: 13px; font-weight: 600; text-decoration: underline; }
.resend-code:hover:not(:disabled) { color: #0891b2; }
.resend-code:disabled { cursor: default; color: #9ca3af; text-decoration: none; }
.resend-status { min-height: 18px; margin: 0; color: #6b7280; text-align: center; font-size: 12px; line-height: 1.5; }
.close-modal { position: absolute; top: 12px; right: 16px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; color: #9ca3af; background: transparent; font-size: 30px; line-height: 1; }
.close-modal:hover { color: #6b7280; }
@media (max-width: 640px) { .login-page { padding: 48px 16px; } .login-logo { height: 172px; } }
