/* =========================================================
   BARKBUDDY APP WAITING LIST
   ========================================================= */

:root {
    --bb-register-gold: #dfbc6a;
    --bb-register-gold-light: #f0d77f;
    --bb-register-cream: #fffaf0;
    --bb-register-muted: rgba(255, 250, 240, 0.64);
    --bb-register-border: rgba(223, 188, 106, 0.24);
}


.bb-register {
    position: relative;
    overflow: hidden;
    min-height: 100vh;

    color: var(--bb-register-cream);

    background:
        radial-gradient(
            circle at 85% 12%,
            rgba(223, 188, 106, 0.13),
            transparent 28%
        ),
        radial-gradient(
            circle at 8% 76%,
            rgba(223, 188, 106, 0.06),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #060606,
            #090806 58%,
            #0e0c08
        );
}


.bb-register__hero {
    position: relative;

    min-height: calc(100vh - 80px);

    padding: 70px 0 110px;
}


.bb-register__container {
    position: relative;
    z-index: 2;

    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}


.bb-register__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.94fr)
        minmax(420px, 0.76fr);

    gap: clamp(55px, 8vw, 110px);

    align-items: center;
}


/* =========================================================
   BACKGROUND GLOW
   ========================================================= */

.bb-register__glow {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(100px);
}


.bb-register__glow--one {
    top: 2%;
    right: -180px;

    width: 520px;
    height: 520px;

    background: rgba(223, 188, 106, 0.10);
}


.bb-register__glow--two {
    bottom: 3%;
    left: -180px;

    width: 420px;
    height: 420px;

    background: rgba(223, 188, 106, 0.055);
}


/* =========================================================
   INTRO
   ========================================================= */

.bb-register__eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    color: var(--bb-register-gold);

    font-size: 0.72rem;
    font-weight: 850;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}


.bb-register__eyebrow > span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--bb-register-gold);

    box-shadow:
        0 0 0 6px rgba(223, 188, 106, 0.09),
        0 0 18px rgba(223, 188, 106, 0.45);
}


.bb-register__intro h1 {
    max-width: 700px;

    margin: 0;

    font-size: clamp(4.2rem, 8vw, 7.4rem);
    line-height: 0.86;

    letter-spacing: -0.06em;
}


.bb-register__intro h1 em {
    display: block;

    margin-top: 9px;

    color: var(--bb-register-gold);

    font-family: Georgia, serif;
    font-style: normal;
    font-weight: 400;
}


.bb-register__lead {
    max-width: 620px;

    margin: 30px 0 0;

    color: var(--bb-register-muted);

    font-size: 1.08rem;
    line-height: 1.8;
}


/* =========================================================
   BENEFITS
   ========================================================= */

.bb-register__benefits {
    display: grid;

    gap: 14px;

    max-width: 610px;

    margin-top: 38px;
}


.bb-register__benefit {
    display: grid;

    grid-template-columns: 48px minmax(0, 1fr);

    gap: 16px;

    align-items: start;

    padding: 18px 20px;

    border: 1px solid rgba(223, 188, 106, 0.15);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        );
}


.bb-register__benefit-number {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(223, 188, 106, 0.32);
    border-radius: 50%;

    color: var(--bb-register-gold);

    background: rgba(223, 188, 106, 0.06);

    font-size: 0.68rem;
    font-weight: 900;
}


.bb-register__benefit strong {
    display: block;

    color: #ffffff;

    font-size: 1rem;
}


.bb-register__benefit p {
    margin: 5px 0 0;

    color: rgba(255, 250, 240, 0.52);

    font-size: 0.83rem;
    line-height: 1.55;
}


.bb-register__quiet {
    margin: 22px 0 0;

    color: rgba(255, 250, 240, 0.40);

    font-size: 0.82rem;
}


/* =========================================================
   FORM PANEL
   ========================================================= */

.bb-register__panel {
    position: relative;

    padding: clamp(28px, 4vw, 42px);

    overflow: hidden;

    border: 1px solid rgba(223, 188, 106, 0.28);
    border-radius: 30px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(223, 188, 106, 0.10),
            transparent 32%
        ),
        rgba(10, 10, 9, 0.88);

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 238, 185, 0.035);

    backdrop-filter: blur(14px);
}


.bb-register__panel::before {
    content: "";

    position: absolute;

    top: 0;
    right: 22px;
    left: 22px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(240, 215, 127, 0.58),
            transparent
        );
}


.bb-register__panel-heading > span,
.bb-register__success-eyebrow {
    display: block;

    color: var(--bb-register-gold);

    font-size: 0.68rem;
    font-weight: 850;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.bb-register__panel-heading h2,
.bb-register__success h2 {
    margin: 10px 0 14px;

    font-size: clamp(2.3rem, 4vw, 3.8rem);
    line-height: 0.98;

    letter-spacing: -0.045em;
}


.bb-register__panel-heading h2 em,
.bb-register__success h2 em {
    color: var(--bb-register-gold);

    font-family: Georgia, serif;
    font-style: normal;
    font-weight: 400;
}


.bb-register__panel-heading p,
.bb-register__success > p {
    margin: 0;

    color: var(--bb-register-muted);

    font-size: 0.94rem;
    line-height: 1.7;
}


/* =========================================================
   ALERT
   ========================================================= */

.bb-register__alert {
    margin-top: 22px;
    padding: 14px 16px;

    border-radius: 14px;

    font-size: 0.84rem;
    line-height: 1.5;
}


.bb-register__alert--error {
    border: 1px solid rgba(255, 130, 130, 0.28);

    background: rgba(120, 22, 22, 0.18);
    color: #ffd6d6;
}


/* =========================================================
   FORM
   ========================================================= */

.bb-register__form {
    display: grid;

    gap: 18px;

    margin-top: 28px;
}


.bb-register__field {
    display: grid;

    gap: 8px;
}


.bb-register__field label {
    color: #fffaf0;

    font-size: 0.78rem;
    font-weight: 800;
}


.bb-register__field label span {
    margin-left: 6px;

    color: rgba(255, 250, 240, 0.35);

    font-size: 0.68rem;
    font-weight: 600;
}


.bb-register__field input {
    width: 100%;
    min-height: 52px;

    padding: 0 16px;

    border: 1px solid rgba(223, 188, 106, 0.19);
    border-radius: 14px;

    outline: none;

    background: rgba(255, 255, 255, 0.035);
    color: #fffaf0;

    font: inherit;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}


.bb-register__field input:hover {
    border-color: rgba(223, 188, 106, 0.34);
}


.bb-register__field input:focus {
    border-color: rgba(240, 215, 127, 0.75);

    background: rgba(255, 255, 255, 0.05);

    box-shadow:
        0 0 0 4px rgba(223, 188, 106, 0.08);
}


.bb-register__field input[aria-invalid="true"] {
    border-color: rgba(255, 130, 130, 0.66);
}


.bb-register__error {
    color: #ffb9b9;

    font-size: 0.72rem;
    line-height: 1.45;
}


.bb-register__consent {
    display: grid;

    grid-template-columns: 18px minmax(0, 1fr);

    gap: 11px;

    align-items: start;

    margin-top: 2px;

    color: rgba(255, 250, 240, 0.56);

    font-size: 0.76rem;
    line-height: 1.55;

    cursor: pointer;
}


.bb-register__consent input {
    width: 16px;
    height: 16px;

    margin: 2px 0 0;

    accent-color: var(--bb-register-gold);
}


.bb-register__consent a {
    color: var(--bb-register-gold);

    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


/* Hidden spam field */

.bb-register__website {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.bb-register__submit {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 58px;

    margin-top: 4px;
    padding: 0 58px;

    border: 0;
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            #f1d58d,
            #d8bb6d
        );

    color: #080808;

    font-size: 0.9rem;
    font-weight: 900;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 14px 34px rgba(214, 173, 80, 0.16);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.bb-register__submit:hover,
.bb-register__submit:focus-visible {
    transform: translateY(-2px);

    box-shadow:
        0 18px 42px rgba(214, 173, 80, 0.24);
}


.bb-register__submit-arrow {
    position: absolute;

    top: 50%;
    right: 10px;

    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    border: 1px solid rgba(8, 8, 8, 0.26);
    border-radius: 50%;

    color: #080808;

    transform: translateY(-50%);

    transition: transform 0.18s ease;
}


.bb-register__submit:hover
.bb-register__submit-arrow,
.bb-register__submit:focus-visible
.bb-register__submit-arrow {
    transform:
        translateY(-50%)
        translateX(3px);
}


.bb-register__form-note {
    margin: -3px 0 0;

    color: rgba(255, 250, 240, 0.32);

    font-size: 0.68rem;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   SUCCESS
   ========================================================= */

.bb-register__success {
    display: flex;
    flex-direction: column;

    min-height: 500px;

    align-items: flex-start;
    justify-content: center;
}


.bb-register__success-paw {
    display: grid;
    place-items: center;

    width: 72px;
    height: 72px;

    margin-bottom: 30px;

    border: 1px solid rgba(223, 188, 106, 0.36);
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(223, 188, 106, 0.18),
            rgba(223, 188, 106, 0.035)
        );

    font-size: 2rem;

    box-shadow:
        0 0 35px rgba(223, 188, 106, 0.09);
}


.bb-register__success-actions {
    display: grid;

    gap: 11px;

    width: 100%;

    margin-top: 30px;
}


.bb-register__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 0 24px;

    border: 1px solid rgba(223, 188, 106, 0.40);
    border-radius: 999px;

    color: var(--bb-register-gold);

    background: transparent;

    font-size: 0.82rem;
    font-weight: 850;

    text-decoration: none;

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}


.bb-register__secondary:hover,
.bb-register__secondary:focus-visible {
    background: rgba(223, 188, 106, 0.07);

    transform: translateY(-2px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 930px) {

    .bb-register__grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .bb-register__intro {
        max-width: 740px;
    }


    .bb-register__panel {
        max-width: 680px;

        width: 100%;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .bb-register__hero {
        padding: 42px 0 76px;
    }


    .bb-register__container {
        width: min(100% - 28px, 1180px);
    }


    .bb-register__intro h1 {
        font-size: clamp(3.5rem, 18vw, 5.2rem);
    }


    .bb-register__lead {
        font-size: 0.96rem;
    }


    .bb-register__benefit {
        grid-template-columns: 42px minmax(0, 1fr);

        gap: 13px;

        padding: 15px;
    }


    .bb-register__benefit-number {
        width: 38px;
        height: 38px;
    }


    .bb-register__panel {
        padding: 24px 18px;

        border-radius: 24px;
    }


    .bb-register__panel-heading h2,
    .bb-register__success h2 {
        font-size: clamp(2.2rem, 12vw, 3.2rem);
    }


    .bb-register__success {
        min-height: 430px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bb-register *,
    .bb-register *::before,
    .bb-register *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}
