/* Log in and sign up (app/inc/auth-form.php) */

.auth-page {
   min-height: 100vh;
   padding: 110px 16px 64px;
   background: linear-gradient(180deg, var(--bs-baby-blue) 0%, var(--bs-mist) 320px);
}

.auth-card {
   max-width: 420px;
   margin: 0 auto;
   padding: 30px 28px 24px;
   background-color: white;
   border: 1px solid var(--bs-line);
   border-radius: 20px;
   box-shadow: 0 10px 30px rgba(27, 58, 75, .08);
}

.auth-title {
   margin: 0 0 6px;
   font-size: 26px;
   line-height: 1.2;
   font-weight: 800;
   letter-spacing: -0.02em;
   color: var(--bs-ink);
   text-align: center;
}

.auth-sub {
   margin: 0 0 22px;
   font-size: 15px;
   line-height: 1.5;
   color: var(--bs-slate);
   text-align: center;
}

.auth-error {
   display: flex;
   gap: 10px;
   align-items: flex-start;
   margin-bottom: 18px;
   padding: 11px 14px;
   border-radius: 12px;
   background-color: var(--bs-blush);
   border: 1px solid var(--bs-blush-line);
   color: var(--bs-error);
   font-size: 14px;
   line-height: 1.5;
}

.auth-error i {
   margin-top: 3px;
}

/* Google / Apple */
.auth-social {
   display: grid;
   gap: 10px;
}

.auth-social-btn {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   padding: 11px 16px;
   border: 1px solid var(--bs-line);
   border-radius: 999px;
   background-color: white;
   color: var(--bs-ink);
   font-size: 15px;
   font-weight: 600;
   text-decoration: none;
   transition: border-color .15s ease, background-color .15s ease;
}

.auth-social-btn:hover,
.auth-social-btn:focus-visible {
   color: var(--bs-ink);
   border-color: var(--bs-line-strong);
   background-color: var(--bs-mist);
}

.auth-social-btn:focus-visible {
   outline: none;
   box-shadow: var(--bs-focus-ring);
}

.auth-social-btn img {
   width: 20px;
   height: 20px;
}

.auth-divider {
   display: flex;
   align-items: center;
   gap: 12px;
   margin: 22px 0 18px;
   font-size: 13px;
   color: var(--bs-slate);
}

.auth-divider::before,
.auth-divider::after {
   content: '';
   flex: 1;
   height: 1px;
   background-color: var(--bs-line);
}

/* Email form */
.auth-form {
   margin: 0;
}

.auth-form label {
   margin-bottom: 6px;
   font-size: 14px;
   font-weight: 600;
   color: var(--bs-ink);
}

.auth-form input[type='email'] {
   height: 4.6rem;
   margin-bottom: 14px;
   padding: 0 14px;
   font-size: 16px; /* 16px stops iOS from zooming in on focus */
   color: var(--bs-ink);
   background-color: white;
}

.auth-turnstile {
   min-height: 65px;
   margin-bottom: 14px;
}

.button.auth-submit {
   width: 100%;
   height: auto;
   margin: 0 !important;
   padding: 13px 20px;
   line-height: 1.4;
   font-size: 15.5px;
   letter-spacing: normal;
}

.button.auth-submit:disabled {
   opacity: .7;
   cursor: progress;
}

.auth-how {
   display: flex;
   gap: 8px;
   align-items: flex-start;
   margin: 12px 0 0;
   font-size: 13.5px;
   line-height: 1.5;
   color: var(--bs-slate);
}

.auth-how i {
   margin-top: 3px;
   color: var(--bs-lagoon);
}

.auth-legal {
   margin: 18px 0 0;
   padding-top: 16px;
   border-top: 1px solid var(--bs-line);
   font-size: 12.5px;
   line-height: 1.5;
   color: var(--bs-slate);
   text-align: center;
}

.auth-switch {
   max-width: 420px;
   margin: 20px auto 0;
   font-size: 15px;
   text-align: center;
   color: var(--bs-ink);
}

.auth-switch a {
   font-weight: 700;
}

.auth-pro {
   max-width: 420px;
   margin: 10px auto 0;
   font-size: 13px;
   text-align: center;
   color: var(--bs-slate);
}

@media (max-width: 480px) {
   .auth-page {
      padding-top: 94px;
   }

   .auth-card {
      padding: 24px 18px 20px;
   }
}

/* Check your email / Enter your code (authentication/wait.php, magic.php) */
.visually-hidden {
   position: absolute;
   width: 1px;
   height: 1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
}

.auth-icon {
   display: grid;
   place-items: center;
   width: 56px;
   height: 56px;
   margin: 0 auto 14px;
   border-radius: 16px;
   background-color: var(--bs-baby-blue);
   color: var(--bs-lagoon);
   font-size: 22px;
}

.auth-icon-warn {
   background-color: var(--bs-blush);
   color: var(--bs-rosewood);
}

.auth-form input.auth-code {
   height: 6rem;
   margin-bottom: 14px;
   padding: 0 12px;
   font-size: 30px;
   font-weight: 700;
   letter-spacing: .35em;
   text-align: center;
   text-transform: uppercase;
   font-variant-numeric: tabular-nums;
   color: var(--bs-ink);
   background-color: white;
}

.auth-form input.auth-code::placeholder {
   color: var(--bs-line-strong);
   font-weight: 600;
}

a.button.auth-submit {
   display: block;
   text-align: center;
}

.auth-steps {
   display: grid;
   gap: 10px;
   margin: 0;
   padding: 0;
   list-style: none;
   counter-reset: step;
}

.auth-steps li {
   position: relative;
   margin: 0;
   padding-left: 36px;
   font-size: 14.5px;
   line-height: 1.5;
   color: var(--bs-ink);
   counter-increment: step;
}

.auth-steps li::before {
   content: counter(step);
   position: absolute;
   left: 0;
   top: 0;
   display: grid;
   place-items: center;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   background-color: var(--bs-baby-blue);
   color: var(--bs-lagoon);
   font-size: 12.5px;
   font-weight: 700;
}
