.tess-auth { --body-bg: #f5f7fb; --body-fg: #1d2c43; --body-quiet-color: #6b778b; --primary: #2563eb; --header-bg: #fff; --header-color: #1d2c43; --header-link-color: #1d2c43; --link-fg: #2563eb; --border-color: #d6dfed; --button-bg: #2563eb; --button-hover-bg: #194cbd; background: #f5f7fb; color: #1d2c43; font: 15px/1.5 system-ui, 'Segoe UI', sans-serif; }
.tess-auth *, .tess-auth *:before, .tess-auth *:after { box-sizing: border-box; }
.tess-auth #container { width: min(440px, calc(100% - 32px)); min-width: 0; margin: 8vh auto; border: 1px solid #e5eaf2; border-radius: 12px; background: white; box-shadow: 0 18px 60px #1d2c4308; overflow: hidden; }
.tess-auth #header { display: flex; flex-direction: column; gap: 18px; padding: 32px 30px 24px; color: #1d2c43; background: white; border-bottom: 1px solid #edf0f5; }
.tess-auth #branding { text-align: center; }
.tess-auth #site-name { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.tess-auth #site-name span { color: #2563eb; }
.tess-auth-caption { margin: 8px 0 0; font-size: 13px; color: #6b778b; }
.tess-auth #content { padding: 26px 30px 30px; }
.tess-auth #login-form { margin: 0; }
.tess-auth #login-form .form-row { padding: 0 0 20px; }
.tess-auth #login-form label { display: block; padding: 0 0 8px; color: #1d2c43; font-size: 14px; }
.tess-auth #login-form input[type=text], .tess-auth #login-form input[type=password] { width: 100%; height: 46px; padding: 11px 12px; border: 1px solid #cfd9e9; border-radius: 5px; color: #1d2c43; font: inherit; background: white; }
.tess-auth #login-form input:focus { outline: 2px solid #b4ccfa; outline-offset: 1px; }
.tess-auth #login-form .submit-row { padding: 4px 0 0; margin: 0; text-align: left; }
.tess-auth #login-form input[type=submit] { width: 100%; height: 46px; line-height: 20px; padding: 13px; border: 0; border-radius: 5px; font-size: 15px; color: white; background: #2563eb; cursor: pointer; }
.tess-auth .admin-languages { display: flex; justify-content: center; gap: 5px; }
.tess-auth .admin-languages form { margin: 0; }
.tess-auth .admin-languages button { padding: 7px 10px; border: 0; border-radius: 4px; font: inherit; font-size: 12px; color: #6b778b; background: transparent; cursor: pointer; }
.tess-auth .admin-languages button[aria-current], .tess-auth .admin-languages button:hover { color: #2563eb; background: #edf3ff; }
.tess-auth .errornote { font-size: 13px; border-radius: 5px; }
.tess-auth.login { background: #f5f7fb; --darkened-bg: #f5f7fb; }
.tess-auth.login #container { width: min(440px, calc(100% - 32px)); border-radius: 12px; margin: 8vh auto; }
.tess-auth.login #header { padding: 32px 30px 24px; }
.tess-auth #header #branding { display: block; float: none; width: 100%; text-align: center; }
.tess-auth #header #site-name { margin: 0; padding: 0; color: #1d2c43; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.tess-auth.login #content { padding: 26px 30px 30px; background: white; }
.tess-auth #main, .tess-auth #content-start { background: white; }
.tess-auth.login { font-family: 'Golos Text', system-ui, sans-serif; background: radial-gradient(ellipse at 15% 20%, #e7efff 0, transparent 55%), #f5f7fb; }
.tess-auth.login #container { display: grid; grid-template-columns: 1fr 440px; width: min(1000px, calc(100% - 48px)); margin: 8vh auto; min-height: 570px; box-shadow: 0 20px 70px #2037590b; border-radius: 12px; }
.tess-auth.login #header { position: relative; padding: 38px 42px; align-items: stretch; justify-content: space-between; border: 0; border-right: 1px solid #e5eaf2; background: linear-gradient(135deg, #f4f8ff, #e9f1ff); }
.tess-auth.login #header #branding { text-align: left; }
.tess-auth.login #header #site-name { margin-top: 42px; font-size: 25px; }
.tess-auth-home { display: inline-block; font-size: 12px; color: #6b778b !important; text-decoration: none; }
.tess-auth-home:hover { color: #2563eb !important; }
.tess-auth-story { margin-top: 65px; }
.tess-auth-story > span, .tess-login-intro > span { font-size: 10px; letter-spacing: .12em; color: #6b778b; }
.tess-auth-story h2 { margin: 22px 0; font-size: clamp(28px, 3vw, 39px); line-height: 1.22; letter-spacing: -.035em; font-weight: 500; color: #1d2c43; }
.tess-auth.login #header #branding .tess-auth-story h2 { margin: 22px 0; padding: 0; font-size: clamp(28px, 3vw, 39px); line-height: 1.22; letter-spacing: -.035em; font-weight: 500; }
.tess-auth-story h2 em { font-style: normal; color: #2563eb; }
.tess-auth-story p { max-width: 310px; font-size: 14px; line-height: 1.75; color: #6b778b; }
.tess-auth-lines { display: flex; gap: 18px; height: 52px; margin: 30px 0; }
.tess-auth-lines i { width: 27px; height: 100%; border: 1px solid #a8c2ee; transform: skew(-22deg); }
.tess-auth-lines i:nth-child(2) { height: 75%; align-self: end; }.tess-auth-lines i:last-child { height: 50%; align-self: end; }
.tess-auth.login .admin-languages { justify-content: flex-start; }
.tess-auth.login #main { display: block; align-self: center; width: 100%; }
.tess-auth.login #content { padding: 45px 38px; }
.tess-login-intro { margin-bottom: 30px; }
.tess-login-intro h2 { font-size: 26px; letter-spacing: -.03em; font-weight: 500; line-height: 1.25; margin: 14px 0; color: #1d2c43; }
.tess-login-intro p { font-size: 13px; line-height: 1.7; color: #6b778b; margin: 0; }
.tess-auth.login #footer { display: none; }
.tess-auth.login #login-form input[type=submit] { font-family: inherit; transition: background .2s; }
.tess-auth.login #login-form input[type=submit]:hover { background: #194cbd; }
@media (max-width:760px) {
  .tess-auth.login #container { display: block; min-height: 0; width: min(440px, calc(100% - 28px)); margin: 24px auto; }
  .tess-auth.login #header { padding: 24px; border-right: 0; border-bottom: 1px solid #e5eaf2; gap: 18px; }
  .tess-auth.login #header #site-name { margin-top: 25px; font-size: 24px; }
  .tess-auth-story { display: none; }
  .tess-auth.login #content { padding: 28px 24px 32px; }
  .tess-login-intro h2 { font-size: 24px; }
}
