@import url("/girls_portal_base.css");

/* Girls login artwork layer. Keep authenticated portal styles in girls_portal_base.css. */
.girls-auth-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background:
    linear-gradient(rgba(255, 250, 246, 0.48), rgba(255, 247, 241, 0.58)),
    url("/girls-assets/login/pattern.png") center top / 360px auto repeat;
}

.girls-auth-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 62px;
  left: 0;
  width: 100%;
  height: 50px;
  background-image: url("/girls-assets/login/lace.png");
  background-size: 25vw auto;
  background-position: center top;
  background-repeat: repeat-x;
  pointer-events: none;
}

.girls-auth-shell .girls-header {
  position: relative;
  z-index: 2;
  background: rgba(255, 250, 244, 0.9);
  border-bottom: 0;
  box-shadow: none;
}

.girls-brand-heart,
.girls-shell-brand-mark {
  color: transparent !important;
  background-color: transparent !important;
  background-image: url("/girls-assets/brand_icon.png") !important;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  border-radius: 10px !important;
}

.girls-auth-shell .girls-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 430px);
  grid-template-areas:
    "hero panel"
    "fatal panel";
  align-items: center;
  gap: 20px 42px;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 30px 0 44px;
}

.girls-auth-shell .girls-hero {
  position: relative;
  grid-area: hero;
  min-height: 610px;
  padding: 58px 24px 345px;
  overflow: visible;
  background-image:
    url("/girls-assets/split_icons/weather.png"),
    url("/girls-assets/split_icons/recipe.png"),
    url("/girls-assets/split_icons/todo.png"),
    url("/girls-assets/split_icons/rent_app.png"),
    url("/girls-assets/split_icons/fortune_app.png"),
    url("/girls-assets/split_icons/rei_app.png"),
    url("/girls-assets/character.png");
  background-position:
    8% 43%,
    4% 62%,
    11% 82%,
    91% 42%,
    96% 64%,
    89% 83%,
    center calc(100% - 12px);
  background-size:
    72px auto,
    72px auto,
    72px auto,
    72px auto,
    72px auto,
    72px auto,
    min(64%, 470px) auto;
  background-repeat: no-repeat;
  text-align: center;
}

.girls-auth-shell .girls-hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.girls-auth-shell .girls-hero::before {
  content: "";
  display: block;
  width: min(74%, 440px);
  height: 164px;
  margin: 0 auto;
  background: url("/girls-assets/logo.png") center / contain no-repeat;
}

.girls-auth-shell .girls-kicker {
  position: absolute;
  top: 102px;
  right: 2%;
  width: min(245px, 42%);
  margin: 0;
  padding: 18px 20px;
  border: 2px solid #7f6679;
  border-radius: 46% 54% 50% 46% / 52% 46% 54% 48%;
  background: rgba(255, 255, 255, 0.94);
  color: transparent;
  font-size: 0;
  box-shadow: 0 8px 22px rgba(107, 74, 99, 0.08);
}

.girls-auth-shell .girls-kicker::after {
  content: "ログインして、アプリを作ろう！";
  white-space: pre-line;
  color: #5e4a4d;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.65;
}

.girls-auth-shell .girls-hero p:last-child {
  display: none;
}

#girls-fatal {
  grid-area: fatal;
}

#girls-login-panel,
#girls-password-panel {
  grid-area: panel;
  align-self: center;
  justify-self: center;
  width: min(100%, 430px);
  min-height: 610px;
  margin: 0;
  padding: 132px 54px 70px;
  border: 0;
  border-radius: 0;
  background: transparent url("/girls-assets/login/frame.png") center / 100% 100% no-repeat;
  box-shadow: none;
}

#girls-login-panel h2,
#girls-password-panel h2 {
  margin-bottom: 8px;
  color: #675568;
  font-size: 1.65rem;
  line-height: 1.25;
  text-align: center;
}

#girls-login-panel > .girls-step,
#girls-password-panel > .girls-step {
  display: none;
}

#girls-login-panel > .girls-muted {
  margin: 0 auto 18px;
  color: #8a7480;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

#girls-login-panel .girls-form,
#girls-password-panel .girls-form {
  gap: 14px;
  margin-top: 16px;
}

#girls-login-panel .girls-form label,
#girls-password-panel .girls-form label {
  gap: 6px;
  color: #6b5661;
  font-size: 0.76rem;
}

#girls-login-panel .girls-form input,
#girls-password-panel .girls-form input {
  min-height: 50px;
  border: 1px solid #cdbbc9;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#girls-login-panel .girls-form input:focus,
#girls-password-panel .girls-form input:focus {
  border-color: #ac89bd;
  box-shadow: 0 0 0 4px rgba(172, 137, 189, 0.14);
}

#girls-login-panel .girls-primary,
#girls-password-panel .girls-primary {
  min-height: 50px;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: linear-gradient(180deg, #c5b1d8 0%, #a88bc2 54%, #9a7ab8 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.58),
    0 7px 14px rgba(123, 88, 143, 0.2);
  text-shadow: 0 1px 0 rgba(93, 66, 105, 0.28);
}

#girls-login-panel .girls-message,
#girls-password-panel .girls-message {
  margin-top: 12px;
  font-size: 0.72rem;
}

/* Authenticated app preview */
.girls-app-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.girls-app-card-heading h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.girls-app-preview-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  font-size: 0.75rem;
}

.girls-preview-card {
  scroll-margin-top: 96px;
}

.girls-preview-heading {
  align-items: center;
}

.girls-preview-frame-wrap {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #e3cfe0;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

#girls-preview-frame {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
  background: #fff;
}

@media (max-width: 900px) {
  .girls-auth-shell .girls-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "panel"
      "fatal";
    width: min(680px, calc(100% - 24px));
    padding-top: 18px;
  }

  .girls-auth-shell .girls-hero {
    min-height: 430px;
    padding: 34px 18px 255px;
    background-position:
      8% 48%,
      4% 66%,
      12% 84%,
      92% 47%,
      96% 66%,
      88% 84%,
      center bottom;
    background-size:
      60px auto,
      60px auto,
      60px auto,
      60px auto,
      60px auto,
      60px auto,
      min(68%, 430px) auto;
  }

  .girls-auth-shell .girls-hero::before {
    width: min(76%, 400px);
    height: 150px;
  }

  .girls-auth-shell .girls-kicker {
    top: 78px;
    right: 3%;
    width: min(220px, 43%);
    padding: 14px 16px;
  }

  #girls-login-panel,
  #girls-password-panel {
    width: min(430px, 100%);
  }
}

@media (max-width: 560px) {
  .girls-auth-shell .girls-header-tag {
    display: none;
  }

  .girls-auth-shell .girls-shell {
    width: min(100% - 18px, 460px);
    gap: 8px;
  }

  .girls-auth-shell .girls-hero {
    min-height: 340px;
    padding: 24px 8px 202px;
    background-position:
      7% 54%,
      3% 71%,
      13% 88%,
      93% 53%,
      97% 71%,
      87% 88%,
      center bottom;
    background-size:
      44px auto,
      44px auto,
      44px auto,
      44px auto,
      44px auto,
      44px auto,
      min(68%, 300px) auto;
  }

  .girls-auth-shell .girls-hero::before {
    width: min(82%, 330px);
    height: 122px;
  }

  .girls-auth-shell .girls-kicker {
    top: 66px;
    right: 0;
    width: 46%;
    padding: 10px 12px;
  }

  .girls-auth-shell .girls-kicker::after {
    font-size: 0.72rem;
  }

  #girls-login-panel,
  #girls-password-panel {
    min-height: 560px;
    padding: 118px 38px 58px;
  }

  #girls-login-panel h2,
  #girls-password-panel h2 {
    font-size: 1.4rem;
  }

  .girls-app-card-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .girls-app-preview-button {
    align-self: flex-start;
  }

  #girls-preview-frame {
    min-height: 430px;
  }
}
