:root {
  --tl-primary: #2459DB;
  --tl-primary-hover: #1d49b8;
  --tl-bg: #FBF8F2;
  --tl-card: #FFFFFF;
  --tl-fg: #14152B;
  --tl-muted: #6B6E80;
  --tl-border: #D6D8E0;
  --tl-error: #DC2626;
  --tl-radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--tl-bg);
  color: var(--tl-fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.tl-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 16px;
}

.tl-card {
  width: 100%;
  max-width: 420px;
  background: var(--tl-card);
  border: 1px solid var(--tl-border);
  border-radius: var(--tl-radius);
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(20, 21, 43, 0.06);
}

.tl-logo {
  display: block;
  height: 44px;
  margin: 0 auto 20px;
}

.tl-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--tl-fg);
}

.tl-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--tl-muted);
  margin: 0 0 28px;
}

.is-field {
  margin-bottom: 16px;
}

.is-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--tl-fg);
  margin-bottom: 6px;
}

.is-label__accel {
  text-decoration: underline;
}

.is-input,
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--tl-card);
  color: var(--tl-fg);
  border: 1px solid var(--tl-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.is-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--tl-primary);
  box-shadow: 0 0 0 3px rgba(36, 89, 219, 0.12);
}

.is-field--error .is-input,
.is-field--error input {
  border-color: var(--tl-error);
}

.is-password {
  position: relative;
}

button[type="submit"],
input[type="submit"],
.is-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  margin-top: 8px;
  background: var(--tl-primary);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.is-button:hover {
  background: var(--tl-primary-hover);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tl-actions {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--tl-muted);
}

.tl-actions a {
  color: var(--tl-primary);
  text-decoration: none;
}

.tl-actions a:hover {
  text-decoration: underline;
}

.tl-error,
.alert-error,
.kc-feedback-text,
#kc-error-message {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--tl-error);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.tl-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--tl-muted);
}

.tl-footer a {
  color: var(--tl-muted);
  text-decoration: none;
}

.tl-footer a:hover {
  color: var(--tl-fg);
}

#kc-locale,
.kc-info-static {
  display: none;
}
