/* ================================================================
   Milano Serravalle / JumpGroup login
   Visual language aligned with services/remix_-ufficiale---milano-serravalle-2.0/src/index.css
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400..900;1,400..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
  --ms-blue: #004b87;
  --ms-green: #006847;
  --ms-light-green: #8cc63f;
  --ms-ink: #10212f;
  --ms-muted: #5f7184;
  --ms-line: rgba(16, 33, 47, .12);
  --ms-bg: #f5f7fa;
  --ms-surface: rgba(255, 255, 255, .88);
  --ms-surface-strong: #ffffff;
  --ms-shadow: 0 30px 80px rgba(16, 33, 47, .18);
  --ms-shadow-soft: 0 10px 30px rgba(16, 33, 47, .08);
  --ms-radius: 28px;
  --ms-radius-sm: 18px;
}

html {
  background:
    radial-gradient(circle at 15% 20%, rgba(140, 198, 63, .15), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(0, 75, 135, .16), transparent 26%),
    linear-gradient(180deg, #eef4f8 0%, #f5f7fa 48%, #edf5ef 100%);
}

body.login,
body.bloom-login-page {
  margin: 0 !important;
  min-height: 100vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  overflow-x: hidden;
  position: relative;
  color: var(--ms-ink);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background:
    radial-gradient(circle at 12% 18%, rgba(140, 198, 63, .18), transparent 18%),
    radial-gradient(circle at 84% 20%, rgba(0, 75, 135, .20), transparent 20%),
    linear-gradient(180deg, #eef4f8 0%, #f5f7fa 48%, #edf5ef 100%) !important;
}

body.login::before,
body.bloom-login-page::before,
body.login::after,
body.bloom-login-page::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 9999px;
  filter: blur(110px);
}

body.login::before {
  top: -7rem;
  left: -6rem;
  width: 26rem;
  height: 26rem;
  background: rgba(0, 75, 135, .22);
}

body.login::after {
  right: -6rem;
  bottom: -7rem;
  width: 30rem;
  height: 30rem;
  background: rgba(0, 104, 71, .20);
}

body.bloom-login-page::before {
  right: 14%;
  top: 8%;
  width: 14rem;
  height: 14rem;
  background: rgba(140, 198, 63, .20);
}

body.bloom-login-page::after {
  left: 12%;
  bottom: 10%;
  width: 18rem;
  height: 18rem;
  background: rgba(0, 75, 135, .14);
}

#login {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 0;
  margin: 0;
}

@media (min-width: 1200px) {
  body.login,
  body.bloom-login-page {
    padding-top: 5vh !important;
  }
}

@media (max-height: 760px) {
  body.login,
  body.bloom-login-page {
    align-items: flex-start;
    overflow-y: auto;
  }
}

#login h1 {
  margin: 0 0 1.25rem !important;
  padding: 0 !important;
  text-align: center;
}

#login h1 a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  border: 0 !important;
  transition: transform .2s ease, opacity .2s ease;
}

#login h1 a:hover,
#login h1 a:focus {
  opacity: .86;
  transform: translateY(-1px);
  outline: none !important;
}

.bloom-login__logo-svg {
  width: auto !important;
  height: 42px !important;
  display: block;
}

.bloom-login__logo-svg path {
  fill: var(--ms-blue) !important;
}

.bloom-login__logo-img {
  max-width: 250px;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.bloom-login__logo-text {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ms-ink);
}

#login h1::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  margin: .95rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ms-blue), var(--ms-light-green));
}

#loginform,
#lostpasswordform,
#registerform {
  width: 100% !important;
  margin: 0 !important;
  padding: 2rem !important;
  box-sizing: border-box;
  border-radius: var(--ms-radius) !important;
  border: 1px solid rgba(16, 33, 47, .10) !important;
  background: var(--ms-surface) !important;
  box-shadow: var(--ms-shadow) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#loginform label,
#lostpasswordform label,
#registerform label {
  display: block;
  margin-bottom: .4rem !important;
  color: var(--ms-muted) !important;
  font-family: 'Roboto Condensed', 'Roboto', sans-serif !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

.login input[type='text'],
.login input[type='password'],
.login input[type='email'] {
  width: 100% !important;
  height: auto !important;
  padding: .86rem 1rem !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(16, 33, 47, .12) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .96) !important;
  color: var(--ms-ink) !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: .96rem !important;
  line-height: 1.4 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8) !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.login input[type='text']:focus,
.login input[type='password']:focus,
.login input[type='email']:focus {
  border-color: rgba(0, 75, 135, .55) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(0, 75, 135, .10) !important;
}

.login .input {
  margin-bottom: 1rem;
}

.wp-pwd button.button {
  background: transparent !important;
  border: 0 !important;
  color: var(--ms-muted) !important;
  box-shadow: none !important;
}

.forgetmenot {
  display: flex !important;
  align-items: center !important;
  gap: .5rem !important;
  margin: .2rem 0 0 !important;
}

.forgetmenot label {
  margin-bottom: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: .86rem !important;
  font-weight: 500 !important;
  color: var(--ms-muted) !important;
  cursor: pointer;
}

.login input[type='checkbox'] {
  width: 1rem !important;
  height: 1rem !important;
  accent-color: var(--ms-blue) !important;
}

#loginform .submit,
#lostpasswordform .submit,
#registerform .submit {
  margin: 1.4rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

#wp-submit,
.login #loginform input[type='submit'],
.login #lostpasswordform input[type='submit'],
.login #registerform input[type='submit'] {
  width: 100% !important;
  display: block !important;
  padding: .95rem 1.2rem !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--ms-blue), #0c3158) !important;
  color: #fff !important;
  font-family: 'Roboto Condensed', 'Roboto', sans-serif !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  line-height: 1.4 !important;
  text-shadow: none !important;
  box-shadow: 0 12px 26px rgba(0, 75, 135, .26) !important;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease !important;
}

#wp-submit:hover,
.login #loginform input[type='submit']:hover,
.login #lostpasswordform input[type='submit']:hover,
.login #registerform input[type='submit']:hover {
  transform: translateY(-1px) !important;
  filter: saturate(1.05);
  box-shadow: 0 16px 34px rgba(0, 75, 135, .30) !important;
}

#wp-submit:focus,
.login #loginform input[type='submit']:focus,
.login #lostpasswordform input[type='submit']:focus,
.login #registerform input[type='submit']:focus {
  outline: 3px solid rgba(140, 198, 63, .35) !important;
  outline-offset: 2px !important;
}

.bloom-login-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0 !important;
  color: rgba(16, 33, 47, .42);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.bloom-login-divider::before,
.bloom-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 33, 47, .12), transparent);
}

.bloom-login-social {
  margin-top: 1rem;
  padding: 1.1rem;
  border-radius: var(--ms-radius);
  border: 1px solid rgba(16, 33, 47, .10);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--ms-shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bloom-login-social__header {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: .95rem;
}

.bloom-login-social__header span {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ms-muted);
}

.bloom-login-social__header strong {
  font-family: 'Noto Serif', Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--ms-ink);
}

.bloom-login-social__grid {
  display: grid;
  gap: .75rem;
}

.bloom-login-social__button {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: 100%;
  padding: .95rem 1rem;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(16, 33, 47, .12);
  background: var(--ms-surface-strong);
  color: var(--ms-ink) !important;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.bloom-login-social__button:hover,
.bloom-login-social__button:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(16, 33, 47, .12);
  outline: none !important;
}

.bloom-login-social__button--google:hover,
.bloom-login-social__button--google:focus {
  border-color: rgba(66, 133, 244, .28);
}

.bloom-login-social__button--microsoft:hover,
.bloom-login-social__button--microsoft:focus {
  border-color: rgba(0, 164, 239, .28);
}

.bloom-login-social__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.bloom-login-social__button span {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  min-width: 0;
}

.bloom-login-social__button strong {
  font-family: 'Roboto', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ms-ink);
}

.bloom-login-social__button small {
  font-family: 'Roboto', sans-serif;
  font-size: .78rem;
  color: var(--ms-muted);
}

.login #nav,
.login #backtoblog {
  margin: 1rem 0 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

.login #nav a,
.login #backtoblog a,
#nav a,
#backtoblog a {
  color: var(--ms-muted) !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: .84rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: color .2s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover,
#nav a:hover,
#backtoblog a:hover {
  color: var(--ms-blue) !important;
}

.login .message,
.login .success,
.login #login_error {
  margin: 0 0 1rem !important;
  padding: .95rem 1rem !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.login .message,
.login .success {
  border: 1px solid rgba(0, 104, 71, .18) !important;
  background: rgba(140, 198, 63, .10) !important;
  color: #24542a !important;
}

.login #login_error {
  border: 1px solid rgba(203, 71, 55, .18) !important;
  background: rgba(203, 71, 55, .08) !important;
  color: #7f2418 !important;
}

.login #login_error a {
  color: var(--ms-blue) !important;
}

.login-language-switcher,
#language-switcher,
.language-switcher {
  position: fixed !important;
  right: 1.5rem !important;
  bottom: 1.5rem !important;
  z-index: 10;
  display: flex !important;
  align-items: center !important;
  gap: .55rem !important;
  padding: .45rem .55rem .45rem .8rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(16, 33, 47, .10) !important;
  background: rgba(255, 255, 255, .78) !important;
  box-shadow: var(--ms-shadow-soft) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.language-switcher select,
#language-switcher select {
  border: 0 !important;
  background: transparent !important;
  color: var(--ms-ink) !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: .86rem !important;
  font-weight: 500 !important;
  cursor: pointer;
}

.language-switcher input[type='submit'],
#language-switcher input[type='submit'] {
  width: auto !important;
  height: auto !important;
  padding: .42rem .85rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--ms-blue) !important;
  color: #fff !important;
  font-family: 'Roboto Condensed', sans-serif !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

@media (max-width: 768px) {
  body.login,
  body.bloom-login-page {
    padding: 1.3rem .85rem 2.5rem;
    align-items: flex-start;
  }

  #login {
    width: 100%;
    max-width: 480px;
  }

  #loginform,
  #lostpasswordform,
  #registerform {
    padding: 1.65rem 1.35rem !important;
    border-radius: 24px !important;
  }

  .bloom-login-social {
    padding: 1rem;
    border-radius: 24px;
  }

  .login-language-switcher,
  #language-switcher,
  .language-switcher {
    position: static !important;
    margin: 1rem auto 0 !important;
    width: 100% !important;
    max-width: 480px !important;
    justify-content: space-between !important;
  }
}

@media (max-width: 480px) {
  #login h1::after {
    width: 2.5rem;
  }

  #loginform,
  #lostpasswordform,
  #registerform {
    padding: 1.4rem 1.15rem !important;
  }

  .bloom-login-social__button {
    padding: .9rem .9rem;
  }
}

/* SSO portal layout, aligned with the Laravel login screen */
body.login.bloom-sso-mode,
body.bloom-login-page.bloom-sso-mode {
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background: #eef3f7 !important;
  overflow-y: auto;
}

body.bloom-sso-mode::before,
body.bloom-sso-mode::after,
body.bloom-sso-mode.bloom-login-page::before,
body.bloom-sso-mode.bloom-login-page::after {
  display: none !important;
}

body.bloom-sso-mode #login {
  width: min(100%, 540px);
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  padding: 3.2rem 3.5rem 3rem;
  border: 1px solid #d8dee7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 33, 47, .06);
}

body.bloom-sso-mode #login h1 {
  width: 100%;
  margin: 0 0 2.35rem !important;
}

body.bloom-sso-mode #login h1::after {
  display: none;
}

body.bloom-sso-mode #login h1 a {
  transform: none;
}

body.bloom-sso-mode .bloom-login__logo-img,
body.bloom-sso-mode .bloom-login__logo-svg {
  max-width: 300px;
  max-height: 80px;
  width: auto;
  height: auto !important;
  filter: none;
}

body.bloom-sso-mode #loginform,
body.bloom-sso-mode #lostpasswordform,
body.bloom-sso-mode #registerform,
body.bloom-sso-mode #nav,
body.bloom-sso-mode #backtoblog,
body.bloom-sso-mode .login-language-switcher,
body.bloom-sso-mode #language-switcher,
body.bloom-sso-mode .language-switcher {
  display: none !important;
}

body.bloom-sso-mode .message,
body.bloom-sso-mode .success,
body.bloom-sso-mode #login_error {
  width: 100%;
  box-sizing: border-box;
}

body.bloom-sso-mode .bloom-login-social {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.bloom-sso-mode .bloom-login-social__brand {
  text-align: center;
  margin-bottom: 2rem;
}

body.bloom-sso-mode .bloom-login-social__brand h2 {
  margin: 0 0 .55rem;
  color: #171a20;
  font-family: 'Roboto', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
}

body.bloom-sso-mode .bloom-login-social__brand p {
  margin: 0;
  color: #6d6f7c;
  font-family: 'Roboto', sans-serif;
  font-size: .9rem;
  line-height: 1.35;
}

body.bloom-sso-mode .bloom-login-social__section-label {
  margin-bottom: 1rem;
  color: #a4a7b2;
  font-family: 'Roboto', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}

body.bloom-sso-mode .bloom-login-social__button {
  min-height: 68px;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-family: 'Roboto', sans-serif;
  box-shadow: none;
}

body.bloom-sso-mode .bloom-login-social__button:hover,
body.bloom-sso-mode .bloom-login-social__button:focus {
  transform: translateY(-1px);
}

body.bloom-sso-mode .bloom-login-social__button--microsoft {
  border: 1.5px solid #12324a;
  background: #fff;
}

body.bloom-sso-mode .bloom-login-social__button--google {
  justify-content: center;
  min-height: 58px;
  border: 1px solid #e2e4ea;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, .10);
}

body.bloom-sso-mode .bloom-login-social__icon {
  width: 22px;
  height: 22px;
}

body.bloom-sso-mode .bloom-login-social__button--microsoft .bloom-login-social__icon {
  margin-right: .55rem;
}

body.bloom-sso-mode .bloom-login-social__button span {
  flex: 1 1 auto;
}

body.bloom-sso-mode .bloom-login-social__button strong {
  color: #2b2f37;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
}

body.bloom-sso-mode .bloom-login-social__button small {
  margin-top: .25rem;
  color: #747783;
  font-size: .8rem;
  line-height: 1.25;
}

body.bloom-sso-mode .bloom-login-social__button--google span {
  flex: 0 1 auto;
}

body.bloom-sso-mode .bloom-login-social__button--google small {
  display: none;
}

body.bloom-sso-mode .bloom-login-social__chevron {
  flex: 0 0 auto;
  margin-left: auto;
  color: #a0a4ad;
  font-size: 1.75rem;
  line-height: 1;
}

body.bloom-sso-mode .bloom-login-social__divider {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 2rem 0 1.5rem;
  color: #a0a3af;
  font-family: 'Roboto', sans-serif;
  font-size: .92rem;
}

body.bloom-sso-mode .bloom-login-social__divider::before,
body.bloom-sso-mode .bloom-login-social__divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: #d9dce3;
}

body.bloom-sso-mode .bloom-login-social__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin: 2rem 0 0;
  color: #a0a3af;
  font-family: 'Roboto', sans-serif;
  font-size: .84rem;
  line-height: 1.35;
  text-align: center;
}

body.bloom-sso-mode .bloom-login-social__shield {
  position: relative;
  width: 15px;
  height: 17px;
  flex: 0 0 auto;
  border: 1.5px solid #a0a3af;
  border-radius: 8px 8px 10px 10px;
}

body.bloom-sso-mode .bloom-login-social__shield::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 5px;
  height: 8px;
  border-right: 1.5px solid #a0a3af;
  border-bottom: 1.5px solid #a0a3af;
  transform: rotate(38deg);
}

@media (max-width: 768px) {
  body.login.bloom-sso-mode,
  body.bloom-login-page.bloom-sso-mode {
    padding: 1rem;
  }

  body.bloom-sso-mode #login {
    min-height: auto;
    padding: 2.4rem 1.2rem 2.2rem;
    border-radius: 16px;
  }

  body.bloom-sso-mode #login h1 {
    margin-bottom: 2rem !important;
  }

  body.bloom-sso-mode .bloom-login__logo-img,
  body.bloom-sso-mode .bloom-login__logo-svg {
    max-width: 240px;
  }

  body.bloom-sso-mode .bloom-login-social__brand {
    margin-bottom: 1.75rem;
  }

  body.bloom-sso-mode .bloom-login-social__brand h2 {
    font-size: 1.35rem;
  }

  body.bloom-sso-mode .bloom-login-social__brand p {
    font-size: .92rem;
  }

  body.bloom-sso-mode .bloom-login-social__button {
    min-height: 64px;
    padding: .95rem 1rem;
  }

  body.bloom-sso-mode .bloom-login-social__button strong {
    font-size: .98rem;
  }

  body.bloom-sso-mode .bloom-login-social__button small {
    font-size: .82rem;
  }

  body.bloom-sso-mode .bloom-login-social__divider {
    margin: 1.6rem 0 1.25rem;
  }

  body.bloom-sso-mode .bloom-login-social__footer {
    margin-top: 1.7rem;
    font-size: .78rem;
  }
}
