* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    color: #292929;
}

.signup-page {
    min-height: 100vh;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 20px;

    background-image: url("/images/signupBackground.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.signup-overlay {
    position: absolute;
    inset: 0;

    background: rgba(255, 255, 255, 0.08);
}

.signup-card {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 424px;

    background: #F9F8F1;

    border-radius: 38px;

    padding: 45px 45px 55px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15);

    backdrop-filter: blur(8px);
}


/* ==============================
   TOP
============================== */

.signup-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 30px;
}

.signup-top h1 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: 42px;
    font-weight: 500;

    line-height: 1.08;

    color: #292929;
}

.signup-subtitle {
    margin: 15px 0 0;

    font-family: "Cormorant Garamond", serif;

    font-size: 14px;
    font-style: italic;

    color: #343434;
}

.signup-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 35px;
}

.signup-top-right a {
    color: #252525;

    font-family: "Cormorant Garamond", serif;

    font-size: 14px;
    font-weight: 600;

    text-decoration: underline;

    white-space: nowrap;
}

.close-btn {
    border: 0;
    background: transparent;

    font-size: 28px;
    font-weight: 300;

    line-height: 1;

    color: #777;

    cursor: pointer;
}


/* ==============================
   FORM
============================== */

.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.signup-field {
    margin-bottom: 17px;
}

.signup-field label {
    display: block;

    margin-bottom: 6px;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;

    color: #242424;
}

.signup-field label span {
    font-weight: 500;
}

.signup-field input {
    width: 100%;

    height: 33px;

    padding: 5px 10px;

    border: 0;
    border-bottom: 1px solid #929292;

    border-radius: 0;

    outline: none;

    background: rgba(255, 255, 255, 0.88);

    font-family: "Montserrat", sans-serif;

    font-size: 13px;

    color: #292929;
}

.signup-field input:focus {
    border-bottom: 1px solid #292929;
}

.signup-field input::placeholder {
    color: #6e7785;
    opacity: 1;
}

.password-hint {
    margin: 8px 0 0;

    font-size: 9px;
    line-height: 1.45;

    font-style: italic;

    color: #555;
}


/* ==============================
   ERRORS
============================== */

.signup-errors {
    margin-bottom: 18px;

    padding: 10px 12px;

    border: 1px solid #d7aaa4;

    background: #f8e7e4;

    color: #8b3d35;

    font-size: 11px;

    line-height: 1.6;
}


/* ==============================
   TERMS
============================== */

.terms-row {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    margin-top: 22px;
    margin-bottom: 25px;
}

.terms-row input {
    width: 13px;
    height: 13px;

    margin-top: 2px;

    flex-shrink: 0;
}

.terms-row label {
    font-size: 9px;
    line-height: 1.5;

    color: #444;
}

.terms-row a {
    color: #333;

    text-decoration: underline;
}


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

.signup-button {
    width: 100%;

    height: 47px;

    border: 0;
    border-radius: 13px;

    background: #e8c1bd;

    color: #282323;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 3px;

    cursor: pointer;

    transition: 0.2s ease;
}

.signup-button:hover {
    background: #dfb4af;
}


/* ==============================
   GOOGLE
============================== */

.google-section {
    margin-top: 28px;
}

.google-divider {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #8b8580;

    font-size: 11px;
}

.google-divider::before,
.google-divider::after {
    content: "";

    height: 1px;

    flex: 1;

    background: #e0ddd5;
}

.google-divider span {
    white-space: nowrap;
}

.google-button {
    width: 190px;
    height: 47px;

    margin: 20px auto 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: 1px solid #d5d1ca;

    border-radius: 4px;

    background: transparent;

    color: #353535;

    text-decoration: none;

    font-size: 13px;

    letter-spacing: 0.5px;
}

.google-button:hover {
    background: rgba(255, 255, 255, 0.6);
}

.google-logo {
    font-family: Arial, sans-serif;

    font-size: 18px;
    font-weight: 600;

    color: #4285f4;
}


/* ==============================
   BRAND
============================== */

.signup-brand {
    margin-top: 40px;

    text-align: center;

    font-family: "Cormorant Garamond", serif;

    font-size: 10px;

    letter-spacing: 7px;

    color: #aaa49a;
}


/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 576px) {

    .signup-page {
        padding: 20px 12px;
    }

    .signup-card {
        padding: 35px 25px 40px;

        border-radius: 28px;
    }

    .signup-top h1 {
        font-size: 36px;
    }

    .name-row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .signup-top-right {
        gap: 25px;
    }

}

.field-error {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.4;
    color: #b3392f;
}

.terms-error {
    margin: -15px 0 18px;
}
