/* Serenity Talk sign-in. Loaded only by signin.blade.php. */
:root {
  color-scheme: light;
  font-size: clamp(14px, 1.1962vw, 20px);
  --ivory: #fcf7f1;
  --plum: #400f4e;
  --body-text: #624b73;
  --muted-text: #807188;
  --gold: #ad8c50;
  --gold-bright: #dfbd77;
  --gold-text: #866119;
  --focus: #624077;
  --error: #80405f;
  --sans: "Lato", "Segoe UI", Arial, sans-serif;
  --serif: "Times New Roman", Georgia, serif;
  --scene-mobile: url("../../img/signin/signin-mobile-background.jpg");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; background: var(--ivory); }
body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--body-text);
  background: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a, input, label { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
button svg, .input-shell__icon {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:where(a, button, input):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
::selection { background: #eadcf0; color: var(--plum); }

.skip-link {
  position: absolute;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  background: var(--plum);
  transform: translateY(-180%);
  font-size: 16px;
}
.skip-link:focus { transform: translateY(0); }

.scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.signin-layout {
  display: grid;
  grid-template-columns: 55.2% 36.2%;
  grid-template-rows: auto auto 1fr;
  column-gap: .8%;
  width: min(100%, 1672px);
  margin-inline: auto;
  margin-block: auto;
  padding-block: clamp(28px, 4vh, 64px);
}
.brand, .welcome, .tagline { padding-left: min(9.5vw, 159px); }
.brand { grid-column: 1; grid-row: 1; align-self: start; padding-top: 1.05rem; text-align: center; }
.brand__logo { display: block; width: min(88%, 25.25rem); height: auto; margin-inline: auto; }
.brand__powered {
  margin: .08rem 0 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .29em;
  text-transform: uppercase;
}

.welcome { grid-column: 1; grid-row: 2; align-self: start; margin-top: 2.65rem; text-align: center; }
.welcome h1 {
  margin: 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 4.7rem;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
  -webkit-text-stroke: .2px currentColor;
}
.welcome__rule {
  display: block;
  width: 3.8rem;
  height: 3px;
  margin: .7rem auto 0;
  background: linear-gradient(90deg, #aa8328, #ba922f, #aa8328);
  box-shadow: 0 1px 0 rgba(239, 215, 151, .5);
}
.welcome__description { margin: 1rem auto 0; font-size: 1.42rem; line-height: 1.27; }

.tagline {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.1rem;
  white-space: nowrap;
}
.tagline__line { flex: 0 1 4.5rem; height: 1px; background: #b39460; }
.tagline__text {
  color: #7b6683;
  font-family: var(--serif);
  font-size: .65rem;
  line-height: 1.5;
  letter-spacing: .42em;
  text-transform: uppercase;
}

.signin-card {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: start;
  min-width: 0;
  padding: 1.9rem 2.7rem 3.25rem;
  border: 1px solid var(--gold);
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(255, 252, 250, .94), rgba(252, 247, 244, .93));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 12px 32px rgba(135, 98, 122, .045);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.signin-card__header { margin-bottom: .95rem; text-align: center; }
.signin-card__header h2 {
  margin: 0;
  color: var(--plum);
  font-family: var(--serif);
  font-size: 3.45rem;
  font-weight: 400;
  letter-spacing: -.025em;
  -webkit-text-stroke: .2px currentColor;
  line-height: 1.1;
}
.signin-card__flourish { display: block; width: 4.9rem; height: auto; margin: .65rem auto 0; }
.signin-card__header p { margin: .75rem 0 0; font-size: 1.12rem; line-height: 1.32; }

.field + .field { margin-top: 1.05rem; }
.field > label { display: block; margin-bottom: .4rem; font-size: 1rem; line-height: 1.3; }
.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  height: 3.25rem;
  min-height: 48px;
  border: 1px solid var(--gold);
  border-radius: .8rem;
  color: #765e84;
  background: rgba(255, 255, 255, .34);
  box-shadow: inset 0 0 0 1px rgba(213, 184, 123, .12);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.input-shell:focus-within {
  border-color: #785289;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 0 0 3px rgba(111, 70, 129, .1);
}
.input-shell:has(input[aria-invalid="true"]) { border-color: var(--error); box-shadow: 0 0 0 1px rgba(128, 64, 95, .08); }
.input-shell__icon { position: absolute; left: 1.15rem; width: 1.45rem; height: 1.45rem; pointer-events: none; }
.input-shell input {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 1rem 0 4.1rem;
  border: 0;
  border-radius: inherit;
  color: #533761;
  background: transparent;
  font-size: max(16px, 1.1rem);
  line-height: normal;
  outline: none;
}
.input-shell input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.input-shell input::placeholder { color: var(--muted-text); opacity: 1; }
.input-shell--password input { padding-right: 3.3rem; }
input::-ms-reveal, input::-ms-clear { display: none; }
input:-webkit-autofill {
  -webkit-text-fill-color: #533761;
  -webkit-box-shadow: 0 0 0 1000px #faf4ee inset;
  caret-color: #533761;
}
.visibility-toggle {
  position: absolute;
  right: .62rem;
  display: grid;
  place-items: center;
  width: max(44px, 2.15rem);
  height: max(44px, 2.15rem);
  padding: .32rem;
  border: 0;
  border-radius: 50%;
  color: #70517e;
  background: transparent;
}
.visibility-toggle svg { width: 1.55rem; height: 1.55rem; }
.visibility-toggle:hover { background: rgba(112, 81, 126, .06); }
.visibility-toggle__slash { visibility: hidden; }
.visibility-toggle[aria-pressed="true"] .visibility-toggle__slash { visibility: visible; }
.field__error { margin: .35rem .1rem 0; color: var(--error); font-size: max(12px, .78rem); line-height: 1.45; }

.form-options { display: grid; justify-items: start; gap: .35rem; margin-top: .8rem; margin-left: .8rem; }
.show-password {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: .65rem;
  width: max-content;
  min-height: 28px;
  padding-block: .03rem;
  font-size: max(12px, .85rem);
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.show-password input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.show-password__box { display: grid; place-items: center; flex: 0 0 1.2rem; width: 1.2rem; height: 1.2rem; border: 2px solid #76617d; border-radius: .2rem; background: rgba(255, 255, 255, .3); }
.show-password__box svg { width: 85%; height: 85%; opacity: 0; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.show-password input:checked + .show-password__box { border-color: #755083; background: #755083; }
.show-password input:checked + .show-password__box svg { opacity: 1; }
.show-password input:focus-visible + .show-password__box { outline: 3px solid var(--focus); outline-offset: 4px; }
.password-help { width: auto; max-width: 100%; margin: 0; font-size: max(12px, .8rem); line-height: 1.5; }
.password-help a { color: var(--gold-text); text-decoration: none; text-underline-offset: .2em; }
.password-help a:hover { text-decoration: underline; }

.form-actions { display: grid; gap: .8rem; margin-top: 1.3rem; }
.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  height: 3.35rem;
  padding: .65rem 2.2rem;
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 1.13rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .095em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, filter .18s ease;
}
.button--primary {
  overflow: hidden;
  border: 2px solid #d9b773;
  color: #fffaf8;
  background: linear-gradient(105deg, #745294 0%, #825c9e 48%, #7a5598 100%);
  box-shadow: 0 6px 15px rgba(92, 58, 118, .28), inset 0 1px 0 rgba(255, 248, 242, .28);
}
.button--primary:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 8px 21px rgba(92, 58, 118, .34), inset 0 1px 0 rgba(255, 248, 242, .34); }
.button--primary:active:not(:disabled), .button--secondary:active { transform: translateY(1px); }
.button:disabled { cursor: wait; opacity: .8; }
.button--secondary { height: 3.25rem; color: #6c287e; background: rgba(252, 247, 242, .76); }
.button--secondary:hover { background: rgba(255, 255, 255, .65); box-shadow: 0 4px 14px rgba(124, 78, 115, .06); }
.button__arrow { position: absolute; right: 2rem; width: 1.6rem; height: 1.2rem; stroke-width: 1.7; }
.button__spinner { display: none; position: absolute; right: 1.8rem; width: 1.05rem; height: 1.05rem; border: 2px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
.button[aria-busy="true"] .button__spinner { display: block; }
.button[aria-busy="true"] .button__arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 0; color: #644671; font-size: max(13px, .83rem); line-height: 1.5; text-align: center; }
.form-status:not(:empty) { margin-top: 1rem; padding: .8rem; border: 1px solid rgba(149, 116, 148, .25); border-radius: .65rem; background: rgba(239, 228, 240, .5); }
.form-status[data-tone="error"] { color: var(--error); }

@media (max-width: 1023px), (orientation: portrait) {
  :root { font-size: clamp(16px, 3.4vw, 32px); }
  .scene img {
    height: auto;
    object-fit: initial;
    object-position: top;
    mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 78%);
  }
  .scene::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 55vw;
    background: var(--scene-mobile) center bottom / 100% auto no-repeat;
    mask-image: linear-gradient(to bottom, transparent, #000 35%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%);
  }
  .signin-layout { display: flex; flex-direction: column; width: 100%; min-height: 100vh; min-height: 100svh; margin: 0; padding: clamp(28px, 10.5vw, 99px) 0 clamp(64px, 16.4vw, 155px); }
  .brand, .welcome, .tagline { padding-left: 0; }
  .brand { align-self: center; width: 100%; padding-top: env(safe-area-inset-top, 0px); }
  .brand__logo { width: 53.5%; max-width: 505px; }
  .brand__powered { margin-top: .07rem; font-size: clamp(8px, 1.86vw, 17.5px); line-height: 1.45; letter-spacing: .27em; }
  .welcome { align-self: center; width: 94%; margin-top: clamp(74px, 22.65vw, 214px); }
  .welcome h1 { font-size: clamp(2.65rem, 10.3vw, 6.2rem); }
  .welcome__rule { width: 12.9vw; max-width: 122px; height: clamp(2px, .43vw, 4px); margin-top: 2.5vw; }
  .welcome__description { margin-top: 2.7vw; padding-inline: 4px; font-size: 1rem; line-height: 1.32; }
  .signin-card { align-self: center; width: 82%; max-width: 780px; margin-top: 2.7vw; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .signin-card__header { 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; border: 0; }
  .field + .field { margin-top: 1rem; }
  .field > label { margin-bottom: .3rem; padding-left: .1rem; font-size: .94rem; line-height: 1.25; }
  .input-shell { height: clamp(56px, 10.3vw, 98px); border-width: clamp(1px, .16vw, 1.5px); border-radius: .73rem; background: rgba(255, 255, 255, .24); }
  .input-shell__icon { left: 1.08rem; width: 1.22rem; height: 1.22rem; }
  .input-shell input { padding-left: 3.55rem; font-size: 1rem; }
  .input-shell--password input { padding-right: 3rem; }
  .visibility-toggle { right: .72rem; width: max(44px, 1.9rem); height: max(44px, 1.9rem); padding: .2rem; }
  .visibility-toggle svg { width: 1.35rem; height: 1.35rem; }
  .form-options { gap: .65rem; margin-top: .8rem; }
  .show-password { gap: .65rem; min-height: 32px; font-size: .9rem; }
  .show-password__box { flex-basis: 1.1rem; width: 1.1rem; height: 1.1rem; border-radius: .18rem; }
  .password-help { margin-top: 0; font-size: .78rem; line-height: 1.43; }
  .form-actions { gap: .8rem; margin-top: 1.15rem; }
  .button { height: clamp(56px, 11.1vw, 106px); padding: .6rem 2.3rem; font-size: 1.06rem; letter-spacing: .105em; }
  .button__arrow { right: 2.25rem; width: 1.15rem; height: 1.15rem; }
  .button--secondary { border-width: clamp(1.5px, .22vw, 2px); color: var(--plum); }
  .tagline { align-self: center; width: 67%; max-width: 640px; margin-top: 2.15rem; gap: .68rem; }
  .tagline__line { flex: 1 1 0; max-width: 118px; }
  .tagline__text { font-size: clamp(8px, 1.7vw, 16px); line-height: 1.5; letter-spacing: clamp(2px, .55vw, 5.2px); }
}

@media (max-width: 360px) {
  .brand__logo { width: 61%; }
  .brand__powered { letter-spacing: .2em; }
  .welcome h1 { font-size: 2.35rem; }
  .welcome__description { font-size: .93rem; }
  .signin-card { width: 86%; }
  .show-password { gap: .45rem; font-size: .8rem; }
  .password-help { font-size: .72rem; }
  .button__arrow { right: 1.5rem; }
  .tagline { width: 83%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .scene { display: none; }
  .input-shell, .button, .signin-card { border-color: ButtonText; }
  .show-password__box { border-color: ButtonText; }
  .show-password input:checked + .show-password__box { background: Highlight; }
  .show-password__box svg { stroke: HighlightText; }
  .button--primary { color: ButtonText; }
  .tagline__line, .welcome__rule { background: CanvasText; }
}
