body {
  background:
    radial-gradient(circle at 12% 18%, rgba(55, 102, 205, .38), transparent 28%),
    radial-gradient(circle at 90% 86%, rgba(74, 171, 245, .34), transparent 32%),
    linear-gradient(135deg, #e8effb 0%, #f8fcff 48%, #e8f5ff 100%) !important;
  color: #182133;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.pf-v5-c-login { min-height: 100vh; background: transparent !important; }
.pf-v5-c-login__container { grid-template-areas: 'header' 'main' 'footer' !important; grid-template-columns: minmax(320px, 460px) !important; align-content: center !important; justify-content: center !important; gap: 18px !important; padding: 34px 18px !important; }
#kc-header { grid-area: header !important; align-self: center !important; justify-self: center !important; margin: 0 !important; }
.pf-v5-c-login__main { grid-area: main !important; width: min(460px, calc(100vw - 36px)); overflow: hidden; border: 1px solid rgba(113, 133, 171, .28); border-radius: 22px; background: rgba(255, 255, 255, .9) !important; box-shadow: 0 24px 70px rgba(32, 52, 91, .16); backdrop-filter: blur(15px); }
#kc-header-wrapper { display: flex; flex-direction: column; align-items: center; gap: 7px; margin: 0; font-size: 0; }
#kc-header-wrapper::before { width: 210px; height: 70px; background: url('../img/nervha-logo.png') center / contain no-repeat; content: ''; }
#kc-header-wrapper::after { color: #576173; content: 'by Technoaja'; font: 600 11px/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.pf-v5-c-login__main-header { padding: 30px 30px 0 !important; background: transparent !important; }
.pf-v5-c-login__main-body, #kc-content-wrapper { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.pf-v5-c-login__main-body { padding: 22px 30px 30px !important; }
.pf-v5-c-login__main-footer { background: transparent !important; }
#kc-page-title { color: #192439; font-size: 27px; letter-spacing: -.04em; }
.pf-v5-c-form-control, input[type='text'], input[type='password'], input[type='email'] { border: 1px solid #bfc8d8 !important; border-radius: 10px !important; background: #fbfcff !important; color: #1e283c !important; box-shadow: none !important; }
.pf-v5-c-form-control:focus, input:focus { border-color: #295bba !important; box-shadow: 0 0 0 3px rgba(41, 91, 186, .16) !important; }
.pf-v5-c-input-group .pf-v5-c-button.pf-m-control,
.pf-v5-c-input-group__item .pf-v5-c-button,
button[data-password-toggle] {
  border: 1px solid #bfc8d8 !important;
  border-left: 0 !important;
  border-radius: 0 10px 10px 0 !important;
  background: #eef2f8 !important;
  color: #2f4266 !important;
  box-shadow: none !important;
}
.pf-v5-c-input-group .pf-v5-c-button.pf-m-control:hover,
.pf-v5-c-input-group__item .pf-v5-c-button:hover,
button[data-password-toggle]:hover { background: #e2e9f5 !important; color: #163f8b !important; }
.pf-v5-c-button.pf-m-primary, #kc-login { border-radius: 10px !important; background: linear-gradient(100deg, #1750bd, #2fa9e9) !important; box-shadow: 0 10px 20px rgba(39, 82, 168, .19); }
.pf-v5-c-button.pf-m-primary:hover, #kc-login:hover { filter: brightness(1.04); }
.pf-v5-c-form__label-text, label { color: #38445c !important; font-weight: 700 !important; }
a { color: #163b8b !important; }
.pf-v5-c-login__main-footer, #kc-form-options, #kc-registration { color: #646c7a !important; }

#kc-login { min-height: 46px; font-weight: 800; letter-spacing: -.01em; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
#kc-login:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(39, 82, 168, .24); }
#kc-login:active { transform: translateY(0); }
.pf-v5-c-form-control, input[type='text'], input[type='password'], input[type='email'] { min-height: 44px; font-size: 15px !important; }
#kc-form-login { margin-top: 2px; }
#kc-registration { padding-top: 2px; text-align: center; }
a { text-underline-offset: 3px; }

.nervha-shield { display: grid; gap: 18px; text-align: center; padding: 4px 0 8px; }
.nervha-shield h2 { margin: 0; color: #172c54; font-size: 24px; }
.nervha-shield p { margin: 0; color: #5c6e8c; font-size: 14px; line-height: 1.6; }
.nervha-shield-badge { display: grid; place-items: center; margin: auto; width: 56px; height: 56px;
  border-radius: 18px; background: linear-gradient(135deg,#6235f5,#287ee9); color: white;
  font-size: 28px; font-weight: 700; box-shadow: 0 10px 26px #5542da30; }
.nervha-shield altcha-widget { text-align: left; --altcha-max-width: 100%; --altcha-border-radius: 14px;
  --altcha-color-base: #f5f8ff; --altcha-color-border: #d8e3f5; --altcha-color-text: #20365a;
  --altcha-color-border-focus: #4975ed; }
.nervha-shield button { min-height: 46px; border-radius: 12px; }
.nervha-shield button:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 520px) {
  .pf-v5-c-login__container { align-content: start !important; padding-top: 54px !important; }
  #kc-header-wrapper::before { width: 175px; height: 58px; }
  .pf-v5-c-login__main-header { padding: 25px 22px 0 !important; }
  .pf-v5-c-login__main-body { padding: 18px 22px 25px !important; }
  #kc-page-title { font-size: 23px; }
}
