/* Login page layout in the browser UI's style; colours and controls are in brand.css. */

.login-pf body { background: var(--tc-page-bg); background-color: var(--tc-bg); background-attachment: fixed; }

.pf-v5-c-login__container { grid-template-columns: minmax(0, 27rem); }
@media (max-width: 600px) {
  .pf-v5-c-login__container { padding-inline: 16px; }
}

/* Brand above the card: mark + realm display name, like the UI's top bar (.brand). */
#kc-header-wrapper {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--tc-text); font-size: 24px; font-weight: 700; letter-spacing: -.01em;
  line-height: 1.2; text-transform: none;
}
#kc-header-wrapper::before {
  content: ""; flex: none; width: 44px; height: 44px; border-radius: 13px;
  background: url("../img/favicon.svg") center / contain no-repeat;
  box-shadow: 0 6px 18px -6px var(--tc-accent);
}

/* Card: the UI's dialog (dialog.modal, .modal-head with the accent bar). */
.pf-v5-c-login__main {
  position: relative; overflow: hidden;
  border: 1px solid var(--tc-line-2); border-radius: 22px;
  background: linear-gradient(180deg, #17336b, #0f2350);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 138, 31, .08);
}
.pf-v5-c-login__main::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--tc-accent), var(--tc-accent-2), transparent 80%);
}
.pf-v5-c-login__main-header { border-top: 0; }
#kc-page-title { font-size: 20px; font-weight: 700; color: var(--tc-text); }

/* "* Required fields" on the registration page: a hint, not body text. */
.pf-v5-c-login__main .subtitle { color: var(--tc-muted); font-size: 12.5px; margin-bottom: 8px; }

.pf-v5-c-login__main-footer-band {
  border-top: 1px solid var(--tc-line);
  color: var(--tc-muted);
}

/* Alerts on the dark card */
.pf-v5-c-alert.pf-m-inline {
  --pf-v5-c-alert--m-inline--BackgroundColor: rgba(6, 17, 40, .45);
  border-radius: 10px;
}

/* "Go to Trade Copier" (footer.ftl): the way from Keycloak's pages to the app. */
.tc-app-link { text-align: center; }
.tc-app-link a { font-weight: 600; }
.tc-app-link a::after { content: " \2192"; }
