/* Join Page Styles */

.join-page {
    min-height: 100vh;
    padding: 60px 20px;
    color: white;
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
}

.join-container {
    max-width: 900px;
    margin: 0 auto;
}

.join-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.join-header h1 {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.back-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(78, 205, 196, 0.7);
    color: #4ecdc4;
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.3);
}

.join-content {
    animation: slideUp 0.6s ease-out;
}

.join-form {
    background: rgba(20, 30, 60, 0.7);
    border: 2px solid rgba(78, 205, 196, 0.4);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(15px);
    max-height: 600px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(78, 205, 196, 0.5);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.5), inset 0 0 10px rgba(78, 205, 196, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/csvg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
    text-indent: 0.01px;
    text-overflow: '';
}

.form-group select option {
    background: rgba(20, 30, 60, 0.95);
    color: white;
    padding: 8px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-group input[type="checkbox"]:hover {
    border-color: rgba(78, 205, 196, 0.6);
    background: rgba(78, 205, 196, 0.05);
}

.checkbox-group input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border-color: #4ecdc4;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    color:rgba(255, 255, 255, 0.95);
}

/* Custom scrollbar for form */
.join-form::-webkit-scrollbar {
    width: 8px;
}

.join-form::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.join-form::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.5);
    border-radius: 10px;
}

.join-form::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.8);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    margin-top: 30px;
}

#termsCheckbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

#termsCheckbox:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(78, 205, 196, 0.6);
}

#termsCheckbox:checked {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border-color: #4ecdc4;
}

#termsCheckbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.checkbox-container label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    user-select: none;
}

#submitBtn,
.confirm-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
}

#submitBtn::before,
.confirm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff8a8a 0%, #ff6b6b 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

#submitBtn:hover:not(:disabled)::before,
.confirm-btn:hover:not(:disabled)::before {
    left: 100%;
}

#submitBtn:hover:not(:disabled),
.confirm-btn:hover:not(:disabled) {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.6);
    border-color: rgba(255, 107, 107, 1);
}

#submitBtn:active:not(:disabled),
.confirm-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(1.01);
}

#submitBtn:disabled,
.confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#submitBtn.success,
.confirm-btn.success {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
    border-color: rgba(78, 205, 196, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .join-page {
        padding: 40px 15px;
    }

    .join-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .join-header h1 {
        font-size: 32px;
    }

    .join-form {
        padding: 30px;
        max-height: 500px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .join-page {
        padding: 30px 10px;
    }

    .join-header h1 {
        font-size: 24px;
    }

    .join-form {
        padding: 20px;
        max-height: 400px;
    }
}

/* Success Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 30, 60, 0.95) 0%, rgba(30, 40, 80, 0.95) 100%);
    border: 2px solid rgba(78, 205, 196, 0.5);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(78, 205, 196, 0.3);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(78, 205, 196, 0.1) 50%, transparent 100%);
    animation: shimmer 2s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
    font-weight: bold;
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
    position: relative;
    z-index: 1;
}

@keyframes iconBounce {
    0% {
        transform: scale(0) rotateZ(-180deg);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1) rotateZ(0deg);
    }
}

.modal-content h2 {
    font-size: 32px;
    color: white;
    margin: 0 0 15px;
    font-weight: 700;
    animation: titleFade 0.6s ease-out 0.15s both;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

@keyframes titleFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0 0 40px;
    animation: textFade 0.6s ease-out 0.3s both;
    position: relative;
    z-index: 1;
}

@keyframes textFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #4ecdc4;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1.5s linear infinite;
    position: relative;
    z-index: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 40px;
    }

    .modal-content h2 {
        font-size: 26px;
    }

    .modal-content p {
        font-size: 14px;
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }
}
