/* Clariia — My Profile signed-out welcome and sign-in screen. */

#myProfileWelcome[hidden] {
  display: none !important;
}

/* The welcome view replaces the page while signed out. */
body.mp-welcome-mode {
  overflow: hidden;
}

body.mp-welcome-mode > :not(#myProfileWelcome) {
  display: none !important;
}

.myprofile-welcome {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.5rem, 5vh, 4rem) clamp(1.25rem, 5vw, 4rem);
  overflow-y: auto;
  background-color: #f6eddc;
  background-image: url("/images/Harmonious Ivory Paper Layers.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #262421;
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

.myprofile-welcome__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 62rem);
  margin: auto;
}

.myprofile-welcome__logo {
  display: block;
  width: clamp(11rem, 23vw, 24rem);
  height: auto;
  margin: 0 0 clamp(1.5rem, 3.5vh, 2.75rem);
}

.myprofile-welcome__title {
  margin: 0 0 clamp(0.9rem, 2vh, 1.35rem);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.9rem, 4.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #262421;
}

.myprofile-welcome__subtitle {
  max-width: 30rem;
  margin: 0 auto clamp(1.6rem, 3.5vh, 2.6rem);
  font-size: clamp(1.05rem, 1.5vw, 1.55rem);
  line-height: 1.5;
  color: #3a3733;
}

.myprofile-welcome__subtitle--compact {
  margin-bottom: clamp(0.75rem, 1.5vh, 1.1rem);
}

.myprofile-welcome__note {
  max-width: 30rem;
  margin: 0 auto clamp(1.1rem, 2.2vh, 1.6rem);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.5;
  color: #3a3733;
}

.myprofile-welcome__note--invite {
  margin: clamp(1.2rem, 2.6vh, 1.9rem) auto 0;
}

.myprofile-welcome__note a {
  /* Accessible darker gold for normal-size link text on the ivory panel. */
  color: #7a5a1e;
  font-weight: 600;
  text-decoration: underline;
}

.myprofile-welcome__note a:focus-visible {
  outline: 3px solid #7a5a1e;
  outline-offset: 3px;
}

.myprofile-welcome__signin {
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  line-height: 0;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.myprofile-welcome__signin img {
  display: block;
  width: clamp(16rem, 26vw, 24rem);
  height: auto;
}

.myprofile-welcome__signin:hover {
  filter: brightness(1.07);
}

.myprofile-welcome__signin:active {
  transform: scale(0.985);
}

.myprofile-welcome__signin:focus-visible {
  outline: 3px solid var(--brand-gold, #b08a48);
  outline-offset: 4px;
}

@media (max-width: 575.98px) {
  .myprofile-welcome {
    align-items: flex-start;
  }

  .myprofile-welcome__inner {
    margin: auto 0;
  }

  .myprofile-welcome__logo {
    width: min(58vw, 12rem);
  }
}

@media (max-width: 379.98px) {
  .myprofile-welcome__title {
    font-size: 1.75rem;
  }
}

@media (max-width: 339.98px) {
  .myprofile-welcome__title {
    font-size: 1.55rem;
  }
}

@media (max-height: 620px) and (min-width: 576px) {
  .myprofile-welcome__logo {
    width: min(18vw, 13rem);
    margin-bottom: 1rem;
  }

  .myprofile-welcome__title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
  }

  .myprofile-welcome__subtitle {
    margin-bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .myprofile-welcome__signin {
    transition: none;
  }
}
