/* ============================================
   JOIN PAGE STYLES
   ============================================ */


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

.join-header {
    padding: 120px 20px 80px;
    text-align: center;
    background: linear-gradient(180deg, rgba(6, 6, 6, 0.8) 0%, rgba(6, 6, 6, 0) 100%);
}

.join-header__label {
    color: var(--color-accent);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.join-header__title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1.5rem;
}

.join-header__sub {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.7;
}


/* ============================================
   JOIN FORM SECTION
   ============================================ */

.join-form-section {
    padding: 40px 20px 120px;
}

.join-form-section__inner {
    max-width: 600px;
    margin: 0 auto;
}


/* ============================================
   ERROR MESSAGE
   ============================================ */

.join-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: #fca5a5;
    margin-bottom: 2rem;
}


/* ============================================
   SUCCESS MESSAGE
   ============================================ */

.join-success {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(244, 123, 32, 0.08) 0%, rgba(244, 123, 32, 0.03) 100%);
    border: 1px solid rgba(244, 123, 32, 0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.join-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 123, 32, 0.4), transparent);
}

.join-success__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.join-success__text {
    font-size: 1.0625rem;
    opacity: 0.75;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.join-success__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


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

.join-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem;
}

.join-form__group {
    margin-bottom: 2rem;
}

.join-form__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.required {
    color: var(--color-accent);
}

.join-form__input,
.join-form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font);
    transition: all 0.3s ease;
}

.join-form__input:focus,
.join-form__textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(244, 123, 32, 0.1);
}

.join-form__input::placeholder,
.join-form__textarea::placeholder {
    color: var(--text-dim);
}

.join-form__textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.join-form__help {
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    opacity: 0.7;
}

.join-form__charcount {
    font-size: 0.8125rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    text-align: right;
    transition: color 0.3s ease;
}

.join-form__submit {
    width: 100%;
    margin-top: 1rem;
}

.join-form__note {
    font-size: 0.8125rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 1.5rem;
    line-height: 1.6;
}

.join-form__note a {
    color: var(--text);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.join-form__note a:hover {
    color: var(--color-accent);
}


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

@media (max-width: 640px) {
    .join-form {
        padding: 1.5rem;
    }

    .join-success {
        padding: 2rem 1.5rem;
    }

    .join-success__icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .join-success__title {
        font-size: 1.5rem;
    }
}
