/* Sign-in and registration colors follow the relevant portal setting. */
html[data-admin-theme] body .portal-card-head,
html[data-admin-theme] body .register-card-head {
  background: linear-gradient(135deg, var(--admin-accent), var(--admin-accent-dark));
}
html[data-admin-theme] body .portal-btn,
html[data-admin-theme] body .register-submit {
  background: linear-gradient(135deg, var(--admin-accent), var(--admin-accent-dark));
  color: #fff;
}
html[data-admin-theme] body .portal-btn:hover,
html[data-admin-theme] body .register-submit:hover { background: var(--admin-accent-dark); color: #fff; }
html[data-admin-theme] body .portal-card-body .form-control:focus,
html[data-admin-theme] body .register-field .form-control:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px var(--admin-focus-ring);
}

html.lockscreen[data-admin-theme] .lockscreen-name,
html.lockscreen[data-admin-theme] .headline { color: var(--admin-accent-text); }
html.lockscreen[data-admin-theme] .lockscreen-credentials .btn { background: var(--admin-accent); color: #fff; }
html.lockscreen[data-admin-theme] .lockscreen-credentials .btn i { color: #fff; }
html.lockscreen[data-admin-theme] .lockscreen-credentials .btn:hover { background: var(--admin-accent-dark); }

/* Entry links share the portal palette and retain visible hover and keyboard states. */
html[data-admin-theme] body .portal-links a,
html[data-admin-theme] body .register-links a,
html[data-admin-theme] body .portal-footer a { color: var(--admin-accent-text); }
html[data-admin-theme] body .portal-links a:hover,
html[data-admin-theme] body .portal-links a:focus,
html[data-admin-theme] body .register-links a:hover,
html[data-admin-theme] body .register-links a:focus,
html[data-admin-theme] body .portal-footer a:hover,
html[data-admin-theme] body .portal-footer a:focus { color: var(--admin-accent-dark); text-decoration: underline; }
html[data-admin-theme] body .portal-links a:focus-visible,
html[data-admin-theme] body .register-links a:focus-visible,
html[data-admin-theme] body .portal-footer a:focus-visible { outline: 2px solid var(--admin-accent); outline-offset: 3px; }
