@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap");

:root {
  --julie-green: #19705c;
  --julie-green-dark: #004834;
  --julie-peach: #f2d4ca;
  --julie-cream: #f6f9f8;
  --julie-mint: #d7e5e0;
  --julie-ink: #163f37;
}

html,
body.login-password-protected {
  min-height: 100%;
}

body.login-password-protected {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 40px 20px;
  overflow-x: hidden;
  color: var(--julie-ink);
  background: var(--julie-peach) !important;
  font-family: "Quicksand", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-password-protected #login {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(100%, 540px);
  margin: 0;
  padding: 48px 54px 52px !important;
  border: 1px solid rgba(25, 112, 92, 0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 72, 52, 0.1);
}

.login-password-protected #password-protected-logo {
  margin: 0 0 38px;
}

.login-password-protected #password-protected-logo a {
  width: 100%;
  height: 58px;
  margin: 0;
  background-image: url("../../uploads/julie-brand/logo.svg") !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain !important;
}

.julie-preview-intro {
  margin: 0 0 28px;
  text-align: center;
}

.julie-preview-intro h2 {
  margin: 0 0 14px;
  color: var(--julie-green-dark);
  font-family: inherit;
  font-size: clamp(27px, 5vw, 34px);
  font-weight: 700;
  line-height: 1.12;
}

.julie-preview-intro p {
  margin: 0 auto;
  max-width: 390px;
  color: #50635f;
  font-size: 15px;
  line-height: 1.65;
}

.login-password-protected #loginform {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.login-password-protected #loginform > p:first-child:empty,
.login-password-protected #loginform > p:last-child:empty,
.login-password-protected #password-protected-background {
  display: none;
}

.login-password-protected .user-pass-wrap label,
.login-password-protected .forgetmenot label {
  color: var(--julie-green-dark) !important;
  font-size: 14px;
  font-weight: 600;
}

.login-password-protected .wp-pwd {
  margin-top: 9px;
}

.login-password-protected input[type="password"],
.login-password-protected input[type="text"] {
  box-sizing: border-box;
  min-height: 54px;
  padding: 10px 50px 10px 16px;
  border: 1.5px solid #a9c9c1 !important;
  border-radius: 12px;
  outline: none;
  color: var(--julie-green-dark) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 17px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-password-protected input[type="password"]:focus,
.login-password-protected input[type="text"]:focus {
  border-color: var(--julie-green) !important;
  box-shadow: 0 0 0 4px rgba(25, 112, 92, 0.12) !important;
}

.login-password-protected .wp-hide-pw {
  top: 7px !important;
  right: 6px !important;
  color: var(--julie-green) !important;
}

.login-password-protected .forgetmenot {
  margin-top: 15px !important;
}

.login-password-protected input[type="checkbox"] {
  border-color: #88beb7;
  border-radius: 4px;
}

.login-password-protected input[type="checkbox"]:checked::before {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'><path fill='%2319705c' d='M5.5 11.2 9 14.7 16 7.3l-1.4-1.4L9 11.8 6.9 9.7z'/></svg>");
}

.login-password-protected .submit {
  clear: both;
  padding-top: 20px;
}

.login-password-protected #wp-submit {
  float: none;
  width: 100%;
  min-height: 54px;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--julie-green) !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: none !important;
  transition: background 160ms ease, transform 160ms ease;
}

.login-password-protected #wp-submit:hover,
.login-password-protected #wp-submit:focus {
  background: var(--julie-green-dark) !important;
  transform: translateY(-1px);
}

.login-password-protected #login_error,
.login-password-protected .message {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 0;
  border-left: 4px solid var(--julie-green);
  border-radius: 8px;
  color: var(--julie-ink);
  background: #eef5f2;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  body.login-password-protected {
    display: flex;
    align-items: center;
    padding: 20px 14px;
  }

  .login-password-protected #login {
    width: 100%;
    padding: 36px 24px 38px !important;
    border-radius: 22px;
  }

  .login-password-protected #password-protected-logo {
    margin-bottom: 28px;
  }

  .login-password-protected #password-protected-logo a {
    height: 48px;
  }

  .julie-preview-intro {
    margin-bottom: 24px;
  }

  .julie-preview-intro h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-password-protected * {
    transition: none !important;
  }
}
