@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

body {
    display: flex;
    box-sizing: border-box;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    background: #202123;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 20px;
}

/* Join Form */
.join-form {
    background: #45494c;
    border-radius: 1rem;
    padding: 30px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-header p {
    color: #f5f5f5;
    opacity: 0.7;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #f5f5f5;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #45494c;
    border-radius: 8px;
    background: #202123;
    color: #f5f5f5;
    font-size: 1rem;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

/* Ensure username input has same styling as room input */
#userNameInput {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #45494c;
    border-radius: 8px;
    background: #202123;
    color: #f5f5f5;
    font-size: 1rem;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
}

.input-group input:focus,
#userNameInput:focus {
    border-color: #376df9;
    box-shadow: 0 0 5px rgba(55, 109, 249, 0.3);
}

.input-btn {
    position: absolute;
    right: 8px;
    background: #376df9;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
}

.input-btn:hover {
    background: #2a5bd9;
}

.input-help {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #f5f5f5;
    opacity: 0.6;
}

.action-buttons {
    margin-top: 30px;
}

.join-button {
    width: 100%;
    padding: 18px 24px;
    border: none;
    border-radius: 8px;
    background: #376df9;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
}

.join-button:hover {
    background: #2a5bd9;
}

.support-btn {
    width: 100%;
    background: transparent;
    border: 1px solid #45494c;
    border-radius: 8px;
    padding: 12px 24px;
    margin-top: 20px;
    color: #f5f5f5;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
}

.support-btn:hover {
    background: #202123;
    border-color: #376df9;
}

.support-btn i {
    color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .join-form {
        padding: 20px;
        margin: 20px;
    }

    .input-group input,
    #userNameInput {
        padding: 12px 15px;
    }

    .join-button {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .join-form {
        padding: 15px;
    }

    .form-header h2 {
        font-size: 1.3rem;
    }
}
