/*
 * YES TO FOREVER — wedding sign-in and actions.
 * Works with the native Wedding Platform shortcode, without changing login,
 * registration, RSVP, or access-control behavior.
 */
.ytfp-login{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  align-items:stretch;
  gap:0;
  width:calc(100% - 32px);
  max-width:1280px;
  margin:clamp(20px,3.5vw,46px) auto 36px;
  border:1px solid #e1dbcd;
  border-radius:18px;
  background:#fffcf6;
  overflow:hidden;
  box-shadow:0 20px 55px rgba(46,54,40,.095);
}
.ytfp-login>.ytfp-welcome{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;
  min-width:0;
  min-height:615px;
  padding:clamp(28px,4.2vw,66px);
  background:#d6d0c0;
  color:#fffdf8;
  overflow:hidden;
}
.ytfp-login>.ytfp-welcome::before{
  content:"";
  position:absolute;
  z-index:-2;
  inset:0;
  background-image:var(--ytfp-auth-couple-image,none);
  background-color:#ddd7c8;
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center 8%;
}
.ytfp-login>.ytfp-welcome::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:33% 0 0;
  background:linear-gradient(to bottom,rgba(20,37,27,0),rgba(20,37,27,.15) 26%,rgba(20,37,27,.69) 100%);
  pointer-events:none;
}
.ytfp-login>.ytfp-welcome :is(h1,h2,h3,p,strong,small,span){
  color:#fffdf8!important;
  text-shadow:0 2px 12px rgba(17,30,23,.24);
}
.ytfp-login>.ytfp-welcome h1,
.ytfp-login>.ytfp-welcome h2{
  font-family:Georgia,serif;
  font-size:clamp(35px,3.5vw,55px);
  line-height:1.09;
  letter-spacing:-.028em;
  margin:10px 0 20px;
  max-width:550px;
}
.ytfp-login>.ytfp-welcome p{
  max-width:490px;
  font-size:clamp(13px,1.12vw,16px);
  line-height:1.7;
}
.ytfp-login>.ytfp-card{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:stretch;
  align-self:stretch;
  min-width:0;
  width:100%;
  max-width:none;
  margin:0;
  padding:clamp(27px,4.3vw,70px)!important;
  border:0;
  border-radius:0;
  background:#fffcf7;
  box-shadow:none;
}
.ytfp-login>.ytfp-card h2,
.ytfp-login>.ytfp-card h3{
  color:#31513e;
  font-family:Georgia,serif;
}
.ytfp-login>.ytfp-card :is(input:not([type="checkbox"]),select,textarea){
  max-width:100%;
  width:100%;
  min-width:0;
  min-height:44px;
  border-color:#c8d4c5;
  border-radius:7px;
  background:#fff;
}
.ytfp-login>.ytfp-card :is(input,button,a):focus-visible{
  outline:3px solid #c79c62;
  outline-offset:3px;
}
.ytfp-login>.ytfp-card button[type="submit"],
.ytfp-login>.ytfp-card #loginform input[type="submit"]{
  min-height:48px;
  border:1px solid #315944;
  border-radius:9px;
  background:#315944;
  color:#fffdf8;
  font-weight:700;
  cursor:pointer;
}
.ytfp-login>.ytfp-card button[type="submit"]:hover,
.ytfp-login>.ytfp-card #loginform input[type="submit"]:hover{
  background:#234b37;
  border-color:#234b37;
}
/* Public site navigation: a strong sage portal action. */
.site-header .ytfp-header-actions .ytfp-header-portal{
  background:#315944;
  border:1px solid #315944;
  color:#fffdf7;
  box-shadow:0 4px 14px rgba(36,72,51,.16);
  text-decoration:none;
  font-weight:700;
}
.site-header .ytfp-header-actions .ytfp-header-portal:hover{
  background:#234b37;
  border-color:#234b37;
  color:#fff;
}
.site-header .ytfp-header-actions .ytfp-header-portal:focus-visible{
  outline:3px solid #bc955c;
  outline-offset:3px;
}
/* Existing Install App action (only if the site offers one).
 * Class is applied to the existing button/link, not a new fake install action. */
body .ytfp-install-app-accent{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:43px;
  padding:10px 18px;
  border:1px solid #ae804f!important;
  border-radius:100px;
  background:#b98b53!important;
  color:#fffdf7!important;
  box-shadow:0 5px 14px rgba(106,74,38,.16);
  text-decoration:none!important;
  font-weight:800;
  line-height:1.25;
}
body .ytfp-install-app-accent:hover{
  background:#97683c!important;
  border-color:#97683c!important;
  color:#fff!important;
}
body .ytfp-install-app-accent:focus-visible{
  outline:3px solid #365e49;
  outline-offset:3px;
}
@media(max-width:820px){
  .ytfp-login{
    grid-template-columns:minmax(0,1fr);
    width:calc(100% - 24px);
    max-width:640px;
    margin:16px auto 26px;
  }
  .ytfp-login>.ytfp-welcome{
    min-height:365px;
    padding:35px 30px;
    background-position:center;
  }
  .ytfp-login>.ytfp-welcome h1,
  .ytfp-login>.ytfp-welcome h2{font-size:clamp(31px,6.5vw,44px);max-width:460px;}
  .ytfp-login>.ytfp-card{padding:34px 30px!important;}
}
@media(max-width:480px){
  .ytfp-login{
    width:calc(100% - 18px);
    border-radius:12px;
  }
  .ytfp-login>.ytfp-welcome{
    min-height:330px;
    padding:23px 21px;
  }
  .ytfp-login>.ytfp-welcome h1,
  .ytfp-login>.ytfp-welcome h2{font-size:clamp(29px,8vw,37px);margin:8px 0 12px;}
  .ytfp-login>.ytfp-welcome p{font-size:12px;line-height:1.55;}
  .ytfp-login>.ytfp-card{padding:26px 19px!important;}
  .ytfp-login>.ytfp-card :is(input:not([type="checkbox"]),select,textarea){font-size:16px;}
  .site-header .ytfp-header-actions .ytfp-header-portal{min-height:44px;}
}
@media(prefers-reduced-motion:reduce){
  body .ytfp-install-app-accent{transition:none;}
}
