/* TeachSmarts sign-in page (Design Constitution, "Sign-in page"). Copied from PostLearn's /mode page: keep identical in every app. */
/* The card is centred with an equal gutter above and below: it never touches the window edge, and the page can scroll far enough to show space under it. */
.ts-signin-main { width: min(1280px, 96vw); margin: 0 auto; min-height: 100vh; min-height: 100dvh; box-sizing: border-box; padding: clamp(24px, 6vh, 64px) 0; display: grid; place-items: center; }
.ts-signin-card { width: min(980px, 100%); margin: 0 auto; box-sizing: border-box; text-align: center; background: #fff; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 14px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08); padding: 28px 32px 30px; font-family: 'Roboto', 'Segoe UI', sans-serif; --ts-primary: #111111; --ts-primary-hover: #000000; }
.ts-signin-card.ts-app-testinator { --ts-primary: #d9534f; --ts-primary-hover: #c9302c; }
.ts-signin-card h1 { font-size: 2.2rem; margin: 0 0 1.4rem; text-align: center; font-weight: 700; color: #1a1a1a; }
.ts-signin-card button { font: inherit; border: 0; border-radius: 0.8rem; padding: 0.75rem 1.3rem; font-weight: 700; cursor: pointer; }
.ts-signin-card button:disabled { opacity: 0.6; cursor: not-allowed; }
.ts-signin-primary { background: var(--ts-primary); color: #fff; }
.ts-signin-primary:hover:not(:disabled) { background: var(--ts-primary-hover); }
.ts-signin-secondary { background: #d7d9df; color: #1a1a1a; }
.ts-signin-link { background: transparent !important; color: #111111; text-decoration: underline; text-underline-offset: 3px; padding: 0 !important; min-height: 0; }
.ts-signin-choices { display: grid; justify-items: center; gap: 0.65rem; width: min(460px, 100%); margin: 0 auto; }
.ts-signin-choices button { width: 100%; }
.ts-signin-form { display: grid; gap: 0.85rem; width: min(460px, 100%); margin: 1rem auto 0; text-align: left; }
.ts-signin-form label { color: #111111; font-size: 1rem; display: grid; gap: 0.35rem; }
.ts-signin-form input { width: 100%; box-sizing: border-box; min-height: 58px; border: 2px solid #ccd3da; border-radius: 6px; padding: 15px; background: #ffffff; color: #111111; font-size: 1.08rem; font-family: inherit; }
.ts-signin-forgot { justify-self: end; }
.ts-signin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ts-signin-notice { margin: 0; padding: 0.75rem 1rem 0.75rem 2.6rem; position: relative; border: 1px solid #f0b4ae; border-left: 6px solid #b42318; border-radius: 4px; background: #fff1f0; color: #7a1a10; font-weight: 600; text-align: left; line-height: 1.4; }
.ts-signin-notice::before { content: "!"; position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #b42318; color: #fff; font-size: 0.8rem; font-weight: 800; line-height: 1.2rem; text-align: center; }
.ts-signin-notice[data-kind="success"] { border-color: #a6dcb5; border-left-color: #1b7f3b; background: #effaf1; color: #14522a; }
.ts-signin-notice[data-kind="success"]::before { content: "\2713"; background: #1b7f3b; }
.ts-signin-card .hidden { display: none !important; }
.ts-signin-footer { display: flex; justify-content: center; gap: 0.8rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(0, 0, 0, 0.09); }
@media (max-width: 640px) { .ts-signin-card { padding: 20px 16px 24px; } .ts-signin-card h1 { font-size: 2.1rem; } .ts-signin-actions { grid-template-columns: 1fr; } }
