/* OKSEVEN v0.3.346 — Apple ID dialog visual adjustments only.
   Keep input geometry and authentication behavior untouched. */
/* No outer ring on mouse or keyboard focus; single thin field border. */
#ipa-login-dialog.ipa-auth #ipa-email,
#ipa-login-dialog.ipa-auth #ipa-password {
  border: 1px solid #dcded2;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  transition: border-color 160ms ease;
}
#ipa-login-dialog.ipa-auth #ipa-email:is(:hover, :focus, :focus-visible),
#ipa-login-dialog.ipa-auth #ipa-password:is(:hover, :focus, :focus-visible) {
  border-color: #a4b4a7;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}
/* Remove Chromium's bright autofill paint without interfering with password managers. */
#ipa-login-dialog #ipa-email:-webkit-autofill,
#ipa-login-dialog #ipa-email:-webkit-autofill:hover,
#ipa-login-dialog #ipa-email:-webkit-autofill:focus,
#ipa-login-dialog #ipa-password:-webkit-autofill,
#ipa-login-dialog #ipa-password:-webkit-autofill:hover,
#ipa-login-dialog #ipa-password:-webkit-autofill:focus {
  -webkit-text-fill-color: #252923;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  caret-color: #252923;
}
/* Apple ID submit button only: override the site's global hover rule from
   account-03301.css (which uses !important and otherwise makes this light).
   Do not change the native disabled state or any authentication handlers. */
#ipa-login-dialog.ipa-auth #ipa-login-submit:not([aria-busy="true"]) {
  background: #21231f !important;
  border-color: #21231f !important;
  color: #ffffff !important;
  opacity: 1;
  box-shadow: none !important;
}
/* Same hover palette as the existing “Войти в кабинет” button. */
#ipa-login-dialog.ipa-auth #ipa-login-submit:not([aria-busy="true"]):hover {
  background: #41443b !important;
  border-color: #41443b !important;
  color: #ff9b56 !important;
}
/* The connecting state MUST ALREADY LOOK HOVERED, even without a pointer.
   Keep the request disabled and the existing light animated spinner. */
#ipa-login-dialog.ipa-auth #ipa-login-submit[aria-busy="true"],
#ipa-login-dialog.ipa-auth #ipa-login-submit[aria-busy="true"]:hover,
#ipa-login-dialog.ipa-auth #ipa-login-submit[aria-busy="true"]:disabled {
  background: #41443b !important;
  border-color: #41443b !important;
  color: #ff9b56 !important;
  opacity: 1;
  box-shadow: none !important;
  cursor: progress;
}
/* Do not make a genuinely unavailable login button clickable. */
#ipa-login-dialog.ipa-auth #ipa-login-submit:disabled:not([aria-busy="true"]) {
  cursor: not-allowed;
}
#ipa-login-dialog #ipa-login-submit[aria-busy="true"]::before {
  content: "";
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-right: 10px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: ipa-auth-spin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  #ipa-login-dialog #ipa-email,
  #ipa-login-dialog #ipa-password { transition: none; }
  #ipa-login-dialog #ipa-login-submit[aria-busy="true"]::before { animation: none; }
}
