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

.signup-container {
    width: 100%;
    min-height: var(--page-available-height);

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

    padding: 90px 20px;
}

.signup-card {
    width: 100%;
    max-width: 500px;

    padding: 42px;
}

/* ==========================
   HEADER
========================== */

.signup-card h1 {
    margin: 0 0 12px;

    text-align: center;

    font-size: 36px;
    line-height: 1.08;

    font-weight: 850;

    color: #222;
}

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

    text-align: center;

    font-size: 16px;
    line-height: 1.5;

    color: rgba(20, 20, 20, .68);
}

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

.signup-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signup-card input,
.signup-card select {
    width: 100%;
    height: 54px;

    padding: 0 16px;

    border-radius: 16px;

    font-size: 16px;
    font-family: inherit;
    font-weight: 650;

    color: #222;

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

    border: 1px solid rgba(255, 255, 255, .36);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .58),
        0 6px 16px rgba(0, 0, 0, .035);

    outline: none;

    transition: .2s ease;
}

.signup-card select {
    appearance: none;
    -webkit-appearance: none;

    padding-right: 46px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23222' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;

    cursor: pointer;
}

.signup-card select:invalid {
    color: rgba(20, 20, 20, .42);
}

.signup-card select option {
    color: #222;
}

.signup-card input::placeholder {
    color: rgba(20, 20, 20, .42);
}

.signup-card input:focus,
.signup-card select:focus {
    background: rgba(255, 255, 255, .30);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23222' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;

    border-color: rgba(255, 255, 255, .62);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .72),
        0 8px 20px rgba(0, 0, 0, .06);
}

.signup-card button {
    position: relative;
    overflow: hidden;

    height: 56px;

    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, .44);

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

    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);

    color: #222;

    font-size: 16px;
    font-weight: 850;
    font-family: inherit;

    cursor: pointer;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .82),
        0 8px 24px rgba(0, 0, 0, .08);

    transition: .2s ease;
}

.signup-card button::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, .42),
            rgba(255, 255, 255, .05) 60%,
            transparent 100%
        );

    pointer-events: none;
}

.signup-card button:hover {
    transform: translateY(-2px);

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

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 12px 30px rgba(0, 0, 0, .11);
}

.signup-card button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* ==========================
   MESSAGES / LINKS
========================== */

#error-message {
    margin-top: 16px;
    min-height: 20px;

    text-align: center;

    color: rgba(150, 20, 20, .86);

    font-size: 14px;
    font-weight: 850;
}

.login-link {
    margin-top: 22px;

    text-align: center;

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

    color: rgba(20, 20, 20, .62);
}

.login-link a {
    color: rgba(20, 20, 20, .88);

    font-weight: 850;

    text-decoration: none;

    transition: .2s ease;
}

.login-link a:hover {
    color: #111;
    text-decoration: underline;
}

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

@media (max-width: 600px) {
    .signup-container {
        padding: 95px 16px 60px;
        align-items: flex-start;
    }

    .signup-card {
        --surface-radius: 24px;
        padding: 34px 24px;
    }

    .signup-card h1 {
        font-size: 32px;
    }

    .signup-subtitle {
        font-size: 15px;
    }
}
