/*
Theme Name: Renolya ListingHive
Description: Présentation Renolya sur le thème parent ListingHive.
Template: listinghive
Version: 1.1.0
Text Domain: renolya-listinghive
*/

:root {
  --renolya-auth-ink: #183a50;
  --renolya-auth-muted: #65788a;
  --renolya-auth-blue: #1764d8;
  --renolya-auth-navy: #214f70;
  --renolya-auth-line: #dce7ed;
  --renolya-auth-wash: #eef7fa;
}

body:has(.hp-form--user-login),
body:has(.renolya-register-page) {
  background: var(--renolya-auth-wash);
  color: var(--renolya-auth-ink);
}
body:has(.hp-form--user-login) .site-content,
body:has(.renolya-register-page) .site-content {
  background: linear-gradient(145deg, #f7fbfc 0%, #edf7fa 60%, #e9f5f8 100%);
}
body:has(.hp-form--user-login) .hp-page,
body:has(.renolya-register-page) .renolya-register-page {
  width: min(100% - 32px, 940px);
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) 0 clamp(56px, 8vw, 96px);
}

body:has(.hp-form--user-login) .hp-page__title,
body:has(.renolya-register-page) .hp-page__title {
  margin: 0 auto 38px;
  color: var(--renolya-auth-ink);
  font-family: inherit;
  font-size: clamp(40px, 6vw, 62px);
  font-weight: 750;
  letter-spacing: -.04em;
  line-height: 1.08;
  text-align: left;
}
body:has(.hp-form--user-login) .hp-page__title::before,
body:has(.renolya-register-page) .hp-page__title::before {
  display: block;
  width: 110px;
  height: 8px;
  margin: 0 0 24px;
  border-radius: 0;
  background: linear-gradient(90deg, #315fe8, #6483f2);
  content: '';
}
body:has(.hp-form--user-login) .hp-page__content {
  max-width: 680px;
  margin: 0 auto;
}

body:has(.hp-form--user-login) .hp-form--user-login,
.renolya-register-card {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--renolya-auth-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 22px 60px rgba(24, 58, 80, .09);
}
.renolya-register-card .hp-form--user-register {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.renolya-register-card .hp-form__field,
body:has(.hp-form--user-login) .hp-form__field {
  margin-bottom: 22px;
}
.renolya-register-card .hp-form__label,
body:has(.hp-form--user-login) .hp-form__label {
  display: block;
  margin-bottom: 9px;
  color: var(--renolya-auth-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.renolya-register-card input:not([type=checkbox]):not([type=hidden]),
.renolya-register-card select,
.renolya-register-card textarea,
body:has(.hp-form--user-login) input:not([type=checkbox]):not([type=hidden]),
body:has(.hp-form--user-login) select,
body:has(.hp-form--user-login) textarea {
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid #b8cbd5 !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--renolya-auth-ink);
  box-shadow: none !important;
}
.renolya-register-card input:focus,
body:has(.hp-form--user-login) input:focus {
  border-color: var(--renolya-auth-blue) !important;
  outline: 3px solid rgba(23, 100, 216, .13);
}
.renolya-register-card .hp-form__button,
body:has(.hp-form--user-login) .hp-form__button {
  width: 100%;
  min-height: 62px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--renolya-auth-navy) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 19px;
  font-weight: 750;
}
.renolya-register-login,
.renolya-register-pro {
  margin: 22px 0 0;
  color: var(--renolya-auth-muted);
  text-align: center;
}
.renolya-register-login a,
.renolya-register-pro a,
body:has(.hp-form--user-login) .hp-form__footer a {
  color: var(--renolya-auth-blue);
  font-weight: 700;
  text-decoration: none;
}
.renolya-auth-google,
body:has(.hp-form--user-login) .nsl-container {
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--renolya-auth-line);
}
.renolya-auth-google .nsl-container,
.renolya-auth-google .nsl-container-block {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}
.renolya-auth-google .nsl-container .nsl-button,
.renolya-auth-google .nsl-container .nsl-button-default,
.renolya-auth-google .nsl-container .nsl-button-google,
body:has(.hp-form--user-login) .nsl-container .nsl-button,
body:has(.hp-form--user-login) .nsl-container .nsl-button-default,
body:has(.hp-form--user-login) .nsl-container .nsl-button-google {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8cbd5 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #243746 !important;
  font-size: 18px;
  font-weight: 700;
}
.renolya-auth-google .nsl-container .nsl-button:hover,
body:has(.hp-form--user-login) .nsl-container .nsl-button:hover {
  border-color: #7fa8c1 !important;
  background: #f8fbfd !important;
}
.renolya-pro-register .renolya-register-card { max-width: 680px; }
.renolya-pro-register .hp-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.renolya-pro-register .hp-form__field--email,
.renolya-pro-register .hp-form__field--password,
.renolya-pro-register .hp-form__field--select { grid-column: 1 / -1; }

@media (max-width: 640px) {
  body:has(.hp-form--user-login) .hp-page,
  body:has(.renolya-register-page) .renolya-register-page {
    width: min(100% - 24px, 940px);
    padding: 38px 0 58px;
  }
  body:has(.hp-form--user-login) .hp-page__title,
  body:has(.renolya-register-page) .hp-page__title { margin-bottom: 28px; }
  body:has(.hp-form--user-login) .hp-page__title::before,
  body:has(.renolya-register-page) .hp-page__title::before { margin-bottom: 20px; }
  .renolya-register-card,
  body:has(.hp-form--user-login) .hp-form--user-login {
    padding: 24px 18px;
    border-radius: 24px;
  }
  .renolya-pro-register .hp-form__fields { grid-template-columns: 1fr; }
  .renolya-pro-register .hp-form__field { grid-column: 1 !important; }
}