/* Tanya auth-account-entry-v2: authoring 64ac4cbb, accepted design 1c2adc2e.
   Owner-approved vertical adaptation; native Keycloak 26.7.0 forms inherited. */
:root {
  color-scheme: dark;
  --ustav-page: #191d23;
  --ustav-surface: #22272f;
  --ustav-ink: #eef0f2;
  --ustav-muted: #a7adb5;
  --ustav-line: #373e49;
  --ustav-action: #745bd2;
  --ustav-ring: #8c78e6;
}

html.login-pf { min-height: 100%; background: var(--ustav-page); }
.login-pf body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(140, 120, 230, .07), transparent 48%) var(--ustav-page);
  color: var(--ustav-ink);
  font-family: "Basis Grotesque Pro", "Basis Grotesque", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.login-pf-page {
  position: relative;
  width: 400px;
  max-width: calc(100vw - 48px);
  margin: auto;
  padding: 0;
  isolation: isolate;
}
.login-pf-page .card-pf {
  position: relative;
  z-index: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 72px 32px 32px;
  border: 1px solid var(--ustav-line);
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .36);
}
.login-pf-page .card-pf::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--ustav-surface) 96%, transparent);
  backdrop-filter: blur(8px);
}
#kc-header {
  position: absolute;
  z-index: 2;
  top: 32px;
  left: 32px;
  right: 32px;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: left;
  color: var(--ustav-muted);
}
#kc-header-wrapper {
  padding: 0;
  white-space: normal;
  font-size: 12px;
  font-weight: 500;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .13em;
  line-height: 1.5;
}
.login-pf-page .login-pf-header { margin: 0 0 24px; }
#kc-page-title {
  margin: 0;
  text-align: left;
  color: var(--ustav-ink);
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}
#kc-content, #kc-content-wrapper { margin: 0; }
#kc-content-wrapper { overflow-wrap: anywhere; }
.login-pf-page .form-group { margin: 0 0 20px; }
.login-pf-page .form-group:last-child { margin-bottom: 0; }
.login-pf-page .form-horizontal .col-xs-12 { padding: 0; }
.login-pf-page .pf-c-form__label {
  margin-bottom: 8px;
  color: var(--ustav-muted);
  font-size: 13px;
  font-weight: 400;
}
.login-pf-page .pf-c-form-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--ustav-line);
  border-radius: 10px;
  background: var(--ustav-page);
  color: var(--ustav-ink);
  font-size: 14px;
  box-shadow: none;
}
.login-pf-page .pf-c-form-control:focus { border-color: var(--ustav-ring); }
.login-pf-page .pf-c-form-control[aria-invalid="true"] { border-color: #d09661; }
.login-pf-page .pf-c-input-group { align-items: stretch; background: transparent; }
.login-pf-page .pf-c-input-group .pf-c-form-control { min-width: 0; border-radius: 10px 0 0 10px; }
.login-pf-page .pf-c-input-group .pf-c-button {
  min-width: 44px;
  border: 1px solid var(--ustav-line);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: var(--ustav-page);
  color: var(--ustav-muted);
}
.login-pf-page .pf-c-button::after { border: 0; }
.login-pf-page .pf-c-button.pf-m-primary {
  min-height: 46px;
  padding: 10px 54px 10px 18px;
  border: 1px solid #695992;
  border-radius: 999px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%23745bd2'/%3E%3Cpath d='M12 20l8-8m-6 0h6v6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 7px center, color-mix(in srgb, var(--ustav-action) 8%, transparent);
  color: #eeeaff;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: none;
}
.login-pf-page .pf-c-button.pf-m-primary:hover { filter: brightness(1.12); }
.login-pf-page .pf-c-button:disabled { opacity: .6; cursor: wait; }
.login-pf-page :is(input, button, a):focus-visible {
  outline: 2px solid var(--ustav-ring);
  outline-offset: 3px;
}
.login-pf-page a { color: var(--ustav-ring); }
.login-pf-page a:hover { color: var(--ustav-ink); }
#kc-form-buttons { margin: 24px 0 0; }
#kc-info { margin: 24px 0 0; padding: 0; border: 0; background: transparent; }
#kc-info-wrapper { padding: 0; color: var(--ustav-muted); }
#kc-username { color: var(--ustav-ink); font-size: 14px; }
#kc-attempted-username { max-width: calc(100% - 44px); overflow-wrap: anywhere; }
.login-pf-page .kc-feedback-text, .login-pf-page .pf-c-form__helper-text { color: #d09661; }
.login-pf-page .pf-c-alert {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid var(--ustav-line);
  border-radius: 10px;
  background: var(--ustav-page);
  color: var(--ustav-ink);
}
.login-pf-page .pf-c-alert__title { color: inherit; }
.login-pf-page .pf-c-alert__icon { color: var(--ustav-ring); }
.login-pf-page .alert-error .pf-c-alert__icon { color: #d09661; }

/* The blur is on the panel pseudo-element, so this native footer stays viewport-fixed. */
.ustav-ring-backdrop {
  position: fixed;
  z-index: -2;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}
.ustav-rings { width: 540px; height: 540px; max-width: none; overflow: visible; }
.ustav-ring-layer { transform-box: view-box; transform-origin: 270px 270px; }
.ustav-ring { fill: none; stroke: var(--ustav-ring); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ustav-ring-inner { opacity: .68; stroke-dasharray: 3 10; }
.ustav-ring-middle { opacity: .5; stroke-dasharray: 2 9; }
.ustav-ring-outer { opacity: .36; stroke-dasharray: 4 14; }
.ustav-node { stroke: var(--ustav-page); stroke-width: 4; vector-effect: non-scaling-stroke; }
.ustav-node-mint { fill: #65d8b2; }
.ustav-node-orange { fill: #d09661; }
.ustav-node-violet { fill: var(--ustav-ring); }
.ustav-ring-layer-inner { animation: ustav-spin 56s linear infinite; }
.ustav-ring-layer-middle { animation: ustav-spin 88s linear infinite reverse; }
.ustav-ring-layer-outer { animation: ustav-spin 68s linear infinite; }
@keyframes ustav-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .login-pf-page { width: calc(100vw - 64px); max-width: 338px; }
  .login-pf-page .card-pf { padding: 64px 24px 24px; }
  #kc-header { top: 24px; left: 24px; right: 24px; }
  #kc-page-title { font-size: 30px; }
  .ustav-rings { width: 420px; height: 420px; }
}
@media (max-width: 340px) {
  .login-pf-page { width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .ustav-ring-layer { animation: none; }
}
