/* Refuge In Dhamma look for the SFTPGo web client (file 12 step 8a); colours as Keycloak (file 9 step 11b) */
:root, [data-bs-theme="light"], [data-bs-theme="dark"] {
  --rid-purple: #b000ff;   /* headings */
  --rid-green: #11ee88;    /* hover, and the line on the card */
  --rid-orange: #ee8811;   /* buttons */
  --rid-white: #ffffff;    /* button text */
  --bs-primary: var(--rid-orange);
  --bs-primary-rgb: 238, 136, 17;
  --bs-primary-active: var(--rid-green);
  --bs-primary-inverse: var(--rid-white);
  --bs-primary-light: rgba(238, 136, 17, 0.12);
  --bs-text-primary: var(--rid-orange);
  --bs-link-color: var(--rid-orange);
  --bs-link-hover-color: var(--rid-green);
}
body { font-family: "Mark OT", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }

/* Buttons as on the website: orange, white text, square corners, green on hover */
.btn.btn-primary {
  background-color: var(--rid-orange) !important; border-color: var(--rid-orange) !important;
  color: var(--rid-white) !important; border-radius: 0 !important;
}
.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary.active {
  background-color: var(--rid-green) !important; border-color: var(--rid-green) !important;
  color: var(--rid-white) !important;
}
.btn.btn-primary i, .btn.btn-primary .svg-icon { color: var(--rid-white) !important; }

/* Headings purple */
h1, .page-heading { color: var(--rid-purple) !important; }

/* The sign-in card: square, with the green line across the top */
.w-lg-500px.bg-body.rounded { border-radius: 0 !important; border-top: 4px solid var(--rid-green); }

/* The sign-in card: the logo centred, the name under it */
#sign_in_form .container .row > .col-5,
#sign_in_form .container .row > .col-7 { flex: 0 0 100%; max-width: 100%; text-align: center; }
#sign_in_form .container .row > .col-7 h1 { margin: 1rem 0 0 0 !important; }

/* "Sign in with OpenID" -> "Sign in with Passkey", without OpenID's logo */
a[href$="/oidclogin"] img { display: none; }
a[href$="/oidclogin"] span[data-i18n="login.signin_openid"] { font-size: 0; }
a[href$="/oidclogin"] span[data-i18n="login.signin_openid"]::after { content: "Sign in with Passkey"; font-size: 1.15rem; }
html[lang^="zh"] a[href$="/oidclogin"] span[data-i18n="login.signin_openid"]::after { content: "使用通行密钥登录"; }
