/* Adapted from the actual Tsaritsino Keycloak SSO theme (see docs/design.md). */
:root{--ts-green:#153e32;--ts-ink:#203b32;--ts-paper:#f7f8f2;--text-2:#6b766e;--line:#dfe4d9;--accent:#246149;--surface:#fff;--soft:#edf0e7;--emblem:#e7edde;color-scheme:light}
:root[data-theme=dark]{--ts-paper:#111c19;--ts-ink:#e4ece4;--ts-green:#0c2a22;--text-2:#acb9ad;--line:#33483b;--accent:#b1d295;--surface:#1b2b24;--soft:#1b2b24;--emblem:#22382c;color-scheme:dark}
*{box-sizing:border-box}body{background:var(--ts-paper);color:var(--ts-ink);font:14px/1.6 'Segoe UI',Arial,sans-serif;margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit}a{color:var(--accent)}a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.portal-layout{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);min-height:100svh;align-items:stretch}
.ts-story{background:var(--ts-green);color:#f0f4e8;display:flex;flex-direction:column;padding:40px clamp(32px,5vw,84px) 24px;position:relative;overflow:hidden;min-height:100svh}
.ts-brand{display:flex;align-items:center;gap:16px;position:relative;z-index:1;color:inherit;text-decoration:none}.ts-mark{width:58px;height:58px;flex:none}.ts-wordmark{display:block;font-size:25px;letter-spacing:.17em;line-height:1.2;font-weight:550}.ts-brand-sub{display:block;margin-top:7px;font-size:12px;letter-spacing:.045em;color:#c0d0bd}
.ts-intro{position:relative;z-index:1;margin-top:clamp(40px,7vh,90px)}.ts-eyebrow{font-size:10px;letter-spacing:.22em;color:#b8cba8;font-weight:600;margin:0 0 23px}.ts-headline{font-size:clamp(42px,4.4vw,72px);font-weight:450;letter-spacing:-.055em;line-height:1.08;margin:0;max-width:650px}.ts-headline span{display:block;color:#c5dea8}.ts-description{max-width:340px;margin-top:24px;color:#c6d4c6;font-size:15px;line-height:1.7}
.ts-art{display:block;width:calc(100% + 100px);max-width:none;height:0;margin:16px -50px 0;min-height:150px;flex:1;object-fit:contain;object-position:center bottom;opacity:.95}.ts-story-footer{display:flex;justify-content:space-between;gap:20px;color:#bdcbb9;font-size:10px;letter-spacing:.035em;padding-top:18px;border-top:1px solid #ffffff20;position:relative;z-index:1}
.login-main{align-self:center;width:min(100%,490px);margin:60px auto;padding:0 44px}.ts-form-emblem{width:42px;height:42px;background:var(--emblem);border:1px solid var(--line);border-radius:13px;display:grid;place-items:center;margin-bottom:26px;color:var(--accent)}.ts-form-emblem svg{width:21px;height:21px}h1{font-size:32px;letter-spacing:-.035em;font-weight:550;line-height:1.2;margin:0}.ts-login-hint{color:var(--text-2);font-size:14px;line-height:1.6;margin:12px 0 32px}
.social-providers{display:flex;align-items:center;justify-content:center;gap:22px;padding:12px 0 16px}.social-button{width:84px;height:84px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:0 3px 8px #163f3208}.social-button:disabled{opacity:1;cursor:not-allowed}.social-button img{display:block;object-fit:contain}.connection-status{font-size:12px;color:var(--text-2);text-align:center;margin:12px 0 26px}.secondary-links{display:flex;justify-content:center;align-items:center;gap:16px;font-size:12px}.secondary-links a{text-decoration:none;padding:8px 0}.secondary-links a:hover{text-decoration:underline}.secondary-links>span{color:var(--text-2)}
.ts-form-footer{border-top:1px solid var(--line);margin-top:26px;padding-top:25px;display:flex;align-items:flex-start;gap:10px;color:var(--text-2);font-size:11px;line-height:1.65}.ts-form-footer svg{width:14px;height:14px;flex:none;margin-top:3px}.ts-form-footer strong{display:block;font-weight:500;color:var(--ts-ink);margin-bottom:2px;font-size:12px}
.ts-theme-switch{display:flex;justify-content:center;margin-top:22px}.ts-theme-options{display:flex;align-items:center;gap:3px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--soft)}.ts-theme-options button{display:grid;place-items:center;width:44px;height:40px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--text-2);cursor:pointer}.ts-theme-options svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.ts-theme-options svg.ts-theme-auto{width:33px;height:20px}.ts-theme-options button:hover{color:var(--accent)}.ts-theme-options button[aria-pressed=true]{background:var(--surface);color:var(--accent);box-shadow:0 1px 4px #173a2420}
.alternative-providers{display:grid;gap:12px}.alternative-providers button{min-height:50px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ts-ink);padding:12px;opacity:1;cursor:not-allowed}.information-copy{color:var(--text-2);font-size:14px;margin:24px 0}
@media(min-width:1600px){.ts-art{max-height:400px}.ts-intro{margin-top:11vh}}
@media(max-width:1000px){.ts-story{padding:32px 32px 24px}.ts-wordmark{font-size:20px}.ts-mark{width:48px;height:48px}.ts-story-footer span:last-child{display:none}.login-main{padding:0 32px}.ts-headline{font-size:47px}.ts-description{font-size:14px}.ts-art{width:calc(100% + 64px);margin-left:-32px;margin-right:-32px}}
@media(max-width:720px){.portal-layout{display:flex;flex-direction:column}.ts-story{min-height:0;padding:22px 25px 27px;display:block;flex:none}.ts-brand{gap:11px}.ts-mark{width:40px;height:40px}.ts-wordmark{font-size:19px;letter-spacing:.16em}.ts-brand-sub{font-size:10px;margin-top:4px}.ts-intro{margin-top:24px}.ts-eyebrow,.ts-description,.ts-story-footer{display:none}.ts-headline{font-size:27px;line-height:1.18;letter-spacing:-.03em}.ts-headline span{display:inline;margin-left:.2em}.ts-art{position:absolute;right:-42px;bottom:-14px;width:230px;height:150px;min-height:0;margin:0;opacity:.23;pointer-events:none}.login-main{padding:0 27px;margin:35px auto;max-width:470px}.ts-form-emblem{display:none}h1{font-size:27px}.ts-login-hint{margin:10px 0 24px;font-size:13px}.ts-form-footer{margin-top:22px;padding-top:20px}.social-providers{padding-top:8px}}

.alternative-providers .trial-button{display:block;text-align:center;text-decoration:none;border-radius:9px;padding:12px;min-height:50px;width:100%;background:var(--ts-green);color:#f0f4e8;cursor:pointer}.trial-button:hover{filter:brightness(1.15)}
