


/* ============================================
   SIGNUP
   ============================================ */

.signup {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: #111;
}

/* --------------------------------------------
   Background photograph
   -------------------------------------------- */

.signup__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.signup__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;

    transform: scale(1.03);
}

/* subtle darkening for readability */

.signup__photo::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.18) 0%,
            rgba(0,0,0,.18) 35%,
            rgba(0,0,0,.45) 100%
        );
}


/* ============================================
   Floating panel
   ============================================ */

.signup__panel {

    position: relative;
    z-index: 2;

    margin-left: auto;

    width: min(440px, 100%);
    min-height: 100svh;

    padding: 4rem 3rem;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(255,255,255,.92);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        -20px 0 60px rgba(0,0,0,.18);
}

/* ============================================
   Typography
   ============================================ */

.signup__logo {
    width: 80%;
    margin-bottom: 3rem;
}

.signup h1 {

    margin: 0 0 .4rem;

    font-family: var(--font-serif);
    font-size: clamp(2.25rem,3vw,3rem);
    font-weight: 400;
}

.signup__intro {

    margin-bottom: 2.5rem;

    color: #666;
    line-height: 1.5;
}

/* ============================================
   Form
   ============================================ */

.field {
    margin-bottom: 1.4rem;
}

.field label {

    display: block;

    margin-bottom: .45rem;

    font-size: .85rem;
    font-weight: 600;
    color: #444;
}

.field input {

    width: 100%;

    padding: .9rem 1rem;

    border: 1px solid #ddd;
    border-radius: 6px;

    background: white;

    font-size: 1rem;

    transition: border-color .2s ease;
}

.field input:focus {

    outline: none;

    border-color: #999;
}

/* button */

.signup .button {

    width: 100%;

    margin-top: 1rem;
}

.signup__meta {

    margin-top: 2rem;

    color: #666;
    font-size: .95rem;
}

.signup__login {

    margin-top: 1rem;

    font-size: .9rem;
}

.signup__login a {
    text-decoration: underline;
}


/* ============================================
   Mobile
   ============================================ */

@media (max-width: 768px) {

    .signup {

        display: flex;
        align-items: flex-end;

        min-height: 100svh;
    }

    .signup__photo::after {

        background:
            linear-gradient(
                to top,
                rgba(0,0,0,.65),
                rgba(0,0,0,.15) 55%,
                rgba(0,0,0,.15)
            );
    }

    .signup__panel {

        width: 100%;
        min-height: auto;

        margin: 0;

        padding: 2rem 1.5rem 2.5rem;

        border-radius: 24px 24px 0 0;

        background: rgba(255,255,255,.96);

        box-shadow:
            0 -12px 40px rgba(0,0,0,.25);
    }

    .signup__logo {

        width: 90px;
        margin-bottom: 2rem;
    }

}



/* ============================================
   Membership shared elements
   ============================================ */

/* Logo */

.signup__logo {
    display: block;
    width: 80%;
    height: auto;
    margin: 0 auto 2.5rem;
}


/* Typography */

.signup,
.signup h1,
.signup p,
.signup label,
.signup input,
.signup button {
    font-family: var(--font-sans, Arial, sans-serif);
}

.signup h1 {
    font-family: var(--font-serif, Georgia, serif);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1;
    margin: 0 0 .75rem;
}


/* Form */

.signup form {
    width: 100%;
}

.signup .field {
    margin-bottom: 1.25rem;
}

.signup .field label {
    display: block;
    margin-bottom: .4rem;

    font-size: .85rem;
    font-weight: 600;
    color: #444;
}

.signup .field input {
    display: block;

    width: 100%;
    box-sizing: border-box;

    padding: .85rem 1rem;

    border: 1px solid #ccc;
    border-radius: 5px;

    background: white;

    font-size: 1rem;
    line-height: 1.3;
}


/* Submit button */

.signup input[type="submit"].button, .signup button.button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin-top: .5rem;
    padding: .9rem 1.5rem;

    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;

    background: linear-gradient(
        to bottom,
        #b90000,
        #980000
    );

    color: white;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;
}


/* Supporting text */

.signup__intro {
    color: #666;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.signup__meta,
.signup__login {
    color: #666;
    font-size: .9rem;
}

.signup__meta {
    margin-top: 2rem;
}

.signup__login {
    margin-top: 1rem;
}
