/* Signup page layout */
.signup-page {
    max-width: 1000px;
    margin: 50px auto 80px;
    padding: 0 20px;
}

/* Intro area at the top */
.signup-hero {
    text-align: center;
    margin-bottom: 32px;
}

.signup-hero h2 {
    font-size: var(--text-hero);
    margin-bottom: 10px;
}

.signup-hero p {
    font-size: 1.04rem;
    color: rgba(46, 50, 48, 0.8);
}

/* Two-column layout for form and favorites */
.signup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Card style used on this page */
.signup-card,
.favorites-card {
    background: var(--surface-main);
    border: 2px solid var(--border-green);
    border-radius: 18px;
    padding: 24px;
    box-shadow:
        var(--shadow-soft),
        inset 0 0 0 2px rgba(34, 82, 50, 0.24);
}

.signup-card h3,
.favorites-card h3 {
    font-size: var(--text-section);
    margin-bottom: 16px;
}

/* Form fields inside the sign up card */
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    text-align: left;
}

.field span {
    font-weight: 600;
    color: var(--brown);
}

.form-note {
    margin-top: 12px;
    font-size: var(--text-caption);
    color: rgba(46, 50, 48, 0.7);
}

/* Button row under the form */
.signup-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.signup-actions .button,
.signup-actions .button-light {
    flex: 1;
    text-align: center;
}

.signup-feedback {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(220, 231, 218, 0.88);
    border: 2px solid rgba(34, 82, 50, 0.34);
    color: var(--green);
    font-weight: 600;
}

/* Favorites section text */
.favorites-subtitle {
    margin-bottom: 18px;
    color: rgba(46, 50, 48, 0.8);
}

/* Grid layout for favorite options */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

/* Each favorite item looks like a small pill card */
.favorite-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 252, 247, 0.8);
    border-radius: 12px;
    border: 2px solid rgba(34, 82, 50, 0.34);
    font-weight: 600;
    color: var(--dark-gray);
    box-shadow: inset 0 0 0 2px rgba(34, 82, 50, 0.18);
}

.favorite-item input {
    width: 16px;
    height: 16px;
}

/* Helper text box at the bottom */
.favorites-note {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(220, 231, 218, 0.88);
    border: 2px solid rgba(34, 82, 50, 0.34);
    color: rgba(46, 50, 48, 0.82);
}

/* Tightens the sign up layout on medium screens before the mobile stack */
@media (max-width: 980px) {
    .signup-page {
        margin: 40px auto 64px;
        padding: 0 16px;
    }

    .signup-card,
    .favorites-card {
        padding: 22px;
    }
}

/* Mobile layout adjustment */
@media (max-width: 768px) {
    .signup-page {
        margin: 34px auto 56px;
        padding: 0 14px;
    }

    .signup-hero h2 {
        font-size: 1.95rem;
    }

    .signup-card,
    .favorites-card {
        padding: 18px;
    }

    .signup-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .signup-hero h2 {
        font-size: 1.72rem;
    }
}
